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

Improve Array.push() performance when pushing many items #2565

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

janbiedermann
Copy link
Member

in a few places

Also initialize doesnt need to splice if length is 0, faster

@janbiedermann
Copy link
Member Author

janbiedermann commented Jun 27, 2023

Looks like it has a positive effect on the compiler too:

Compile time: 4.550 (+26.76%) -> 4.311 (+21.89%) (change: -5.25%)
    Run time: 1.329 (+11.89%) -> 1.327 (+33.74%) (change: -0.14%)

@janbiedermann janbiedermann force-pushed the fix_array_limits branch 3 times, most recently from 3016109 to c7b9e10 Compare June 28, 2023 00:28
@elia elia changed the title Fix array limits Improve Array.push() performance when pushing many items Jul 1, 2023
@elia elia changed the title Improve Array.push() performance when pushing many items Improve Array.push() performance when pushing many items Jul 1, 2023
Copy link
Member

@elia elia left a comment

Choose a reason for hiding this comment

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

👍

@hmdne hmdne added this to the v1.8 milestone Jul 6, 2023
@hmdne hmdne merged commit 0ab9c4f into opal:master Oct 12, 2023
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants