Uh oh!
There was an error while loading. Please reload this page.
buffer: improve byteLength performance - #58048
Merged
Merged
Conversation
anonrigforce-pushed
the
yagiz/fast-byte-length
branch
2 times, most recently
from
April 27, 2025 02:35
32ec624 to
61ada9cCompareCodecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #58048 +/- ##
==========================================
+ Coverage 90.18% 90.19% +0.01%
==========================================
Files 630 630 Lines 186393 186400 +7 Branches 36595 36601 +6 ==========================================
+ Hits 168103 168131 +28 + Misses 11090 11086 -4 + Partials 7200 7183 -17
🚀 New features to boost your workflow:
|
This comment was marked as outdated.
This comment was marked as outdated.
ronag
requested changes
Apr 27, 2025
ronag
left a comment
Member
There was a problem hiding this comment.
Looks like some pretty bad performance regressions.
anonrigforce-pushed
the
yagiz/fast-byte-length
branch
from
April 27, 2025 17:01
61ada9c to
e199141Compare# Conflicts: # src/node_external_reference.h
anonrigforce-pushed
the
yagiz/fast-byte-length
branch
from
April 27, 2025 17:17
e199141 to
5bf5393Compareanonrig
commented
Apr 27, 2025
MemberAuthor
jasnell
approved these changes
Apr 27, 2025
mcollina
previously approved these changes
Apr 27, 2025
anonrig
commented
Apr 27, 2025
MemberAuthor
The results are in |
jasnell
commented
Apr 27, 2025
Member
From those results it appears like mostly a wash in terms of perf improvement but the change still looks worthwhile to me. |
anonrig
commented
Apr 27, 2025
MemberAuthor
cc @ronag |
ronag
approved these changes
Apr 28, 2025
nodejs-github-bot
commented
Apr 28, 2025
Collaborator
H4ad
approved these changes
Apr 28, 2025
lemire
approved these changes
Apr 28, 2025
nodejs-github-bot
commented
Apr 29, 2025
Collaborator
Landed in 084a912 |
RafaelGSS pushed a commit
that referenced
this pull request
May 1, 2025
# Conflicts: # src/node_external_reference.h PR-URL: #58048 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Daniel Lemire <daniel@lemire.me>
RafaelGSS pushed a commit
that referenced
this pull request
May 2, 2025
# Conflicts: # src/node_external_reference.h PR-URL: #58048 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Daniel Lemire <daniel@lemire.me>
tniessen added a commit
to tniessen/node
that referenced
this pull request
May 4, 2025
`Utf8Length()` is deprecated and was replaced during the V8 update, but a subsequent commit introduced a new occurrence. Refs: nodejs#58070 Refs: nodejs#58048
aduh95
commented
May 6, 2025
Contributor
This makes build fail on |
BridgeAR
commented
May 6, 2025
Member
@anonrig since this also regresses a lot of code, should we even do this at all? |
nodejs-github-bot pushed a commit
that referenced
this pull request
May 17, 2025
`Utf8Length()` is deprecated and was replaced during the V8 update, but a subsequent commit introduced a new occurrence. Refs: #58070 Refs: #58048 PR-URL: #58156 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit
that referenced
this pull request
May 31, 2025
`Utf8Length()` is deprecated and was replaced during the V8 update, but a subsequent commit introduced a new occurrence. Refs: #58070 Refs: #58048 PR-URL: #58156 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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.
This improves the performance for non one-byte strings.
Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1705/