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

buffer: removed unneeded FastBuffer constructor #19684

Closed
wants to merge 1 commit into from

Conversation

TimothyGu
Copy link
Member

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the buffer Issues and PRs related to the buffer subsystem. label Mar 29, 2018
@addaleax
Copy link
Member

For context, this was originally added because the default constructor for subclasses forwards arguments using array spread, which required a Array.prototype[Symbol.iterator] safeguard.

Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

LGTM if the benchmarks are happy

@mscdex
Copy link
Contributor

mscdex commented Mar 30, 2018

@mscdex
Copy link
Contributor

mscdex commented Apr 1, 2018

Hrmmm.... there is this result which is interesting:

 buffers/buffer-creation.js n=1024 len=10 type='fast-allocUnsafe'           **     -6.73 %       ±4.48% ±5.99%  ±7.86%

@TimothyGu
Copy link
Member Author

@nodejs/v8, could anyone take a look at this, specifically the performance regression in #19684 (comment)?

@BridgeAR
Copy link
Member

BridgeAR commented Apr 9, 2018

I ran the benchmarks again and this time the result is different again.
https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/155/console

It seems like the former result is just a statistical slip-up. The same with the results that show up as changed in this benchmark run.

@TimothyGu
Copy link
Member Author

Seems like the benchmark is flaky enough for it not to matter then. I'll go ahead and land this soon.

@TimothyGu
Copy link
Member Author

Landed in d1af1e4.

@TimothyGu TimothyGu closed this Apr 11, 2018
@TimothyGu TimothyGu deleted the fastbuffer branch April 11, 2018 04:35
TimothyGu added a commit that referenced this pull request Apr 11, 2018
PR-URL: #19684
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Jackson Tian <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
jasnell pushed a commit that referenced this pull request Apr 16, 2018
PR-URL: #19684
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Jackson Tian <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buffer Issues and PRs related to the buffer subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants