Uh oh!
There was an error while loading. Please reload this page.
os: improve networkInterfaces() performance - #25410
Conversation
There was a problem hiding this comment.
Can you explain the perf benefit for networkInterfaces()?
There was a problem hiding this comment.
At first glance it looks like a lot of unrolled code with an extra object being created. Could you please step me through the optimization being done in networkInterfaces(). If you drop the rework to networkInterfaces() do you still see perf wins?
There was a problem hiding this comment.
It's more or less moving the object creation from C++ to JS land, just like we do for CPU enumeration.
BridgeAR
left a comment
There was a problem hiding this comment.
I personally wonder if it would not be faster to just move everything to C++ instead.
The changes LGTM besides the result object. It should be kept as regular object.
Uh oh!
There was an error while loading. Please reload this page.
d7b7cde to
b505976CompareBridgeAR
commented
Jan 10, 2019
danbev
commented
Jan 14, 2019
Landed in 5021b25. |
PR-URL: #25410 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #25410 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: nodejs#25410 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
With included benchmark:
and also makes the C++ implementation mirror the C++ cpu enumeration code for whatever that's worth.
CI: https://ci.nodejs.org/job/node-test-pull-request/20031/
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes