Uh oh!
There was an error while loading. Please reload this page.
src: implement v8 array iteration using the new callback-based API - #51758
Closed
joyeecheung wants to merge 3 commits into
Closed
src: implement v8 array iteration using the new callback-based API#51758joyeecheung wants to merge 3 commits into
joyeecheung wants to merge 3 commits into
Conversation
Using this to iterate over an array can be faster than calling Array::Get repeatedly. Local experiment shows that this is faster once the array size is bigger than 2.
targos
reviewed
Feb 14, 2024
Uh oh!
There was an error while loading. Please reload this page.
anonrig
approved these changes
Feb 16, 2024
nodejs-github-bot
commented
Feb 17, 2024
Collaborator
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Feb 21, 2024
Collaborator
legendecas
approved these changes
Feb 22, 2024
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Feb 22, 2024
Collaborator
joyeecheung added a commit
that referenced
this pull request
Feb 22, 2024
Using this to iterate over an array can be faster than calling Array::Get repeatedly. Local experiment shows that this is faster once the array size is bigger than 2. PR-URL: #51758 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
joyeecheung added a commit
that referenced
this pull request
Feb 22, 2024
PR-URL: #51758 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
joyeecheung
commented
Feb 22, 2024
MemberAuthor
Landed in d51a74a...1a8ae9d |
Member
@joyeecheung can you backport on 21 please, it seems to fail compilation https://github.com/nodejs/node/actions/runs/8049258088/job/21982250897 |
targos
commented
Mar 1, 2024
Member
This can't be backported as it relies on V8 API that doesn't exist on v21.x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src: implement v8 array iteration using the new callback-based API
Using this to iterate over an array can be faster than calling
Array::Get repeatedly. Local experiment shows that this is faster
once the array size is bigger than 2.
src: use callback-based array iteration in Blob