-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
[Merged by Bors] - Fix performance bottleneck in VM #1973
Conversation
replace format! macro by &'static str, reducing one allocation per instruction execution
Codecov Report
@@ Coverage Diff @@
## main #1973 +/- ##
==========================================
- Coverage 45.90% 45.89% -0.01%
==========================================
Files 206 206
Lines 17116 17116
==========================================
- Hits 7857 7856 -1
- Misses 9259 9260 +1
Continue to review full report at Codecov.
|
great work @pdogr how did you spot that? Will this not be duplication over https://github.com/boa-dev/boa/blob/main/boa_engine/src/vm/opcode.rs#L939 though now? |
I noticed that in Yes, this is a duplication of |
@pdogr did you use https://github.com/boa-dev/boa/blob/main/docs/profiling.md or you had your own setup for that flame graph? Would be curious to hear how you got setup |
No nothing specific just |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good! Thank you! I would just document the function, but it's ready to merge from my side :)
The benchmarks look awesome! BenchmarksJust execution tests.
|
bors r+ |
This Pull Request fixes/closes #1972 . It changes the following: - remove `format!` macro in `execute_instruction` and replace by `&'static str`
Pull request successfully merged into main. Build succeeded: |
This Pull Request fixes/closes #1972 . It changes the following: - remove `format!` macro in `execute_instruction` and replace by `&'static str`
This Pull Request fixes/closes #1972 .
It changes the following:
format!
macro inexecute_instruction
and replace by&'static str