GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — os: improve networkInterfaces performance by BridgeAR · Pull Request #22359 · nodejs/node Conversation
|
|
@BridgeAR build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/572/pipeline |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
e7c90b9 to
bb4a589
Compare
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
bb4a589 to
e625c9d
Compare
|
LGTM, nice! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I just pushed another commit that optimizes the algorithm. It is now a much simpler and straight forward as I calculate the number of ones right away and use modulo 2 to validate the entry. New benchmark result: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Since you are rewriting this for performance, is for...of as fast as the classic for loop now?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Tracking bug: https://bugs.chromium.org/p/v8/issues/detail?id=8070
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
You could use (binary & 1) !== 0. Last time I tried the reminder operator was not optimized for this, maybe it is now, don't know.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Tracking bug https://bugs.chromium.org/p/v8/issues/detail?id=8069
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Comments addressed. The performance is now again a tiny bit improved compared to before by using:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This algorithm uses less data transformations and is therefore significantly faster than the one before.
0baa2d7 to
17f4930
Compare
There was an error while loading. Please reload this page.
|
Rebased due to a hiccup with the CI. I only squashed commits that were already reviewed. CI https://ci.nodejs.org/job/node-test-pull-request/16576/ ✔️ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Still LGTM |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This algorithm uses less data transformations and is therefore significantly faster than the one before. PR-URL: nodejs#22359 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
|
Landed in 9bcb744 🎉 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This algorithm uses less data transformations and is therefore significantly faster than the one before. PR-URL: #22359 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
This algorithm uses less data transformations and is therefore significantly faster than the one before. PR-URL: #22359 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.