Uh oh!
There was an error while loading. Please reload this page.
lib: make FreeList faster - #27021
Conversation
1ab7867 to
18428c9CompareUh oh!
There was an error while loading. Please reload this page.
apapirovski
commented
Mar 31, 2019
Benchmark results |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
targos
commented
Mar 31, 2019
Suggestion for the commit title: "lib: make FreeList faster" |
nodejs-github-bot
commented
Mar 31, 2019
nodejs-github-bot
commented
Mar 31, 2019
Trott
commented
Mar 31, 2019
Because these tests are often forgotten until the nightly run: Please make sure |
BridgeAR
commented
Apr 1, 2019
The test will continue to pass. |
danbev
commented
Apr 4, 2019
I'm getting the following lint error locally for this: $ make lint-jsRunning 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. |
BridgeAR
commented
Apr 4, 2019
@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 ( |
targos
commented
Apr 4, 2019
I opened #27083 to make the error message clearer. |
Make FreeList faster by using Reflect.apply and not using is_reused_symbol, but rather just checking whether any items are present in the list prior to calling alloc.
3491ab3 to
4409bf2Comparenodejs-github-bot
commented
Apr 6, 2019
nodejs-github-bot
commented
Apr 10, 2019
danbev
commented
Apr 11, 2019
Make FreeList faster by using Reflect.apply and not using is_reused_symbol, but rather just checking whether any items are present in the list prior to calling alloc. PR-URL: #27021 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #27021 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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