Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign uplib: make FreeList faster #27021
Conversation
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
added
the
http
label
Mar 30, 2019
apapirovski
force-pushed the
apapirovski:faster-freelist
branch
2 times, most recently
from
1ab7867
to
18428c9
Mar 30, 2019
addaleax
approved these changes
Mar 30, 2019
lib/_http_client.js Outdated
This comment has been minimized.
This comment has been minimized.
|
Benchmark results
|
cjihrig
approved these changes
Mar 31, 2019
devsnek
approved these changes
Mar 31, 2019
BridgeAR
approved these changes
Mar 31, 2019
lpinca
approved these changes
Mar 31, 2019
This comment has been minimized.
This comment has been minimized.
|
Suggestion for the commit title: "lib: make FreeList faster" |
apapirovski
changed the title
lib: faster FreeList
lib: make FreeList faster
Mar 31, 2019
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Because these tests are often forgotten until the nightly run: Please make sure |
BridgeAR
added
the
author ready
label
Apr 1, 2019
This comment has been minimized.
This comment has been minimized.
The test will continue to pass. |
This comment has been minimized.
This comment has been minimized.
|
I'm getting the following lint error locally for this: $ make lint-js
Running JS linter...
/Users/danielbevenius/work/nodejs/node/lib/internal/freelist.js
18:7 error Unexpected use of 'Reflect' no-restricted-globals
✖ 1 problem (1 error, 0 warnings)Not sure why this is not picked up by CI. I'm happy to add an ignore to this line but wanted to bring it up here first. |
This comment has been minimized.
This comment has been minimized.
|
@danbev the reason is that the rule just landed recently and the CI ran before the rule landed. Instead of adding an exception it would be ideal to use the primordials ( |
This comment has been minimized.
This comment has been minimized.
|
I opened #27083 to make the error message clearer. |
apapirovski commentedMar 30, 2019
•
edited
1st commit makes FreeList alloc faster by using
Reflect.applyand removingis_reused_symbol.2nd commit fixes a benchmark that I needed to run to confirm the results.
CI: https://ci.nodejs.org/job/node-test-pull-request/22260/
Benchmarks: https://ci.nodejs.org/job/benchmark-node-micro-benchmarks/312/
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes