Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fast path for string concatenation #723

Merged
merged 1 commit into from
Sep 27, 2020

Conversation

RageKnify
Copy link
Contributor

Add a fast path for addition of 2 values of kind String which doesn't require Value::to_string to be invoked on one of them.

Discussed on Discord with @HalidOdat who gave me the go-ahead

@HalidOdat HalidOdat added execution Issues or PRs related to code execution performance Performance related changes and issues labels Sep 27, 2020
@HalidOdat HalidOdat added this to the v0.10.0 milestone Sep 27, 2020
@codecov
Copy link

codecov bot commented Sep 27, 2020

Codecov Report

Merging #723 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #723   +/-   ##
=======================================
  Coverage   71.79%   71.80%           
=======================================
  Files         199      199           
  Lines       13943    13944    +1     
=======================================
+ Hits        10011    10012    +1     
  Misses       3932     3932           
Impacted Files Coverage Δ
boa/src/value/operations.rs 44.59% <100.00%> (+0.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0348ba9...a500eb2. Read the comment docs.

@HalidOdat HalidOdat changed the title Refactor: Add specialization for string concatenation Add fast path for string concatenation Sep 27, 2020
@HalidOdat HalidOdat merged commit 3ce547d into boa-dev:master Sep 27, 2020
@RageKnify RageKnify deleted the refactor/string_concat branch September 27, 2020 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
execution Issues or PRs related to code execution performance Performance related changes and issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants