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

[Merged by Bors] - Don't construct prototype if not needed #2751

Closed
wants to merge 1 commit into from

Conversation

HalidOdat
Copy link
Member

When the function is async || arrow || method we don't need to construct the prototype (then drop it).

@HalidOdat HalidOdat added performance Performance related changes and issues execution Issues or PRs related to code execution labels Mar 27, 2023
@HalidOdat HalidOdat added this to the v0.17.0 milestone Mar 27, 2023
@github-actions
Copy link

Test262 conformance changes

Test result main count PR count difference
Total 94,277 94,277 0
Passed 71,092 71,094 +2
Ignored 17,324 17,324 0
Failed 5,861 5,859 -2
Panics 2 0 -2
Conformance 75.41% 75.41% +0.00%
Fixed tests (2):
test/built-ins/WeakSet/prototype/delete/delete-entry-initial-iterable.js [strict mode] (previously Panic)
test/built-ins/WeakSet/prototype/has/returns-false-when-object-value-not-present.js [strict mode] (previously Panic)

@codecov
Copy link

codecov bot commented Mar 27, 2023

Codecov Report

Merging #2751 (0afb2d9) into main (f793a27) will increase coverage by 0.37%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2751      +/-   ##
==========================================
+ Coverage   50.30%   50.68%   +0.37%     
==========================================
  Files         398      395       -3     
  Lines       40013    39736     -277     
==========================================
+ Hits        20130    20141      +11     
+ Misses      19883    19595     -288     
Impacted Files Coverage Δ
boa_engine/src/vm/code_block.rs 43.98% <100.00%> (ø)

... and 12 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@Razican Razican left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@HalidOdat HalidOdat marked this pull request as ready for review March 27, 2023 21:37
Copy link
Member

@nekevss nekevss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 😄

@Razican
Copy link
Member

Razican commented Mar 27, 2023

bors r+

bors bot pushed a commit that referenced this pull request Mar 27, 2023
When the function is `async || arrow || method ` we don't need to construct the prototype (then drop it).
@bors
Copy link

bors bot commented Mar 27, 2023

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Don't construct prototype if not needed [Merged by Bors] - Don't construct prototype if not needed Mar 27, 2023
@bors bors bot closed this Mar 27, 2023
@bors bors bot deleted the optimization/unneded-prototype-construction branch March 27, 2023 22:09
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.

4 participants