Skip to content

Conversation

@BridgeAR
Copy link
Member

This reduces the overhead of getCIDR() to a minimum. No array is allocated anymore and parts are directly sliced out of the netmask string instead.

 confidence improvement accuracy (*) (**) (***) os/networkInterfaces.js n=10000 *** 3.59 % ±1.42% ±1.88% ±2.42% 

Signed-off-by: Ruben Bridgewater [email protected]

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. os Issues and PRs related to the os subsystem. labels Feb 10, 2023
@BridgeARBridgeARforce-pushed the improve-network-interface-performance branch from 2a41858 to baf5b0dCompareFebruary 10, 2023 02:44
This reduces the overhead of getCIDR() to a minimum. No array is allocated anymore and parts are directly sliced out of the netmask string instead. Signed-off-by: Ruben Bridgewater <[email protected]>
@BridgeARBridgeARforce-pushed the improve-network-interface-performance branch from baf5b0d to bc967faCompareFebruary 14, 2023 14:47
@BridgeARBridgeAR added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. and removed author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Feb 14, 2023
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 16, 2023
@nodejs-github-bot
Copy link
Collaborator

@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 17, 2023
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@BridgeARBridgeAR added the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 18, 2023
@nodejs-github-botnodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Feb 18, 2023
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/46598 ✔ Done loading data for nodejs/node/pull/46598 ----------------------------------- PR info ------------------------------------ Title os: improve network interface performance (#46598) Author Ruben Bridgewater (@BridgeAR) Branch BridgeAR:improve-network-interface-performance -> nodejs:main Labels os, author ready, needs-ci Commits 1 - os: improve network interface performance Committers 1 - Ruben Bridgewater PR-URL: https://github.com/nodejs/node/pull/46598 Reviewed-By: Antoine du Hamel ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/46598 Reviewed-By: Antoine du Hamel -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last review: ⚠ - os: improve network interface performance ℹ This PR was created on Fri, 10 Feb 2023 02:29:09 GMT ✔ Approvals: 1 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/46598#pullrequestreview-1292768411 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2023-02-17T19:34:06Z: https://ci.nodejs.org/job/node-test-pull-request/49655/ - Querying data for job/node-test-pull-request/49655/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/4209174794

@BridgeARBridgeAR added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Feb 20, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 20, 2023
@nodejs-github-botnodejs-github-bot merged commit f17a642 into nodejs:mainFeb 20, 2023
@nodejs-github-bot
Copy link
Collaborator

Landed in f17a642

@targostargos mentioned this pull request Mar 14, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.needs-ciPRs that need a full CI run.osIssues and PRs related to the os subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@BridgeAR@nodejs-github-bot@mscdex@bnoordhuis@jasnell@aduh95