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 — util: use indexed writes in Set and Map inspection by rozzilla · Pull Request #67295 · nodejs/node Conversation
Contributor
Avoid the cost of primordial push calls for each formatted entry by using indexed writes to collect formatted In local 30-sample benchmarks, inspecting 50-element collections improved
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsAvoid the cost of primordial push calls for each formatted entry. Signed-off-by: Roberto Bianchi <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67295 +/- ## ========================================== - Coverage 93.00% 90.67% -2.33% ========================================== Files 428 797 +369 Lines 195754 279605 +83851 Branches 30290 53789 +23499 ========================================== + Hits 182054 253532 +71478 - Misses 13374 16353 +2979 - Partials 326 9720 +9394
🚀 New features to boost your workflow:
|
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.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| assert.strictEqual(typeof output, 'string'); | ||
| assert.notStrictEqual(output.length, 0); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
is this needed?
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.
They’re sanity checks after bench.end(), so they don’t affect the measured time. The first checks util.inspect() returned the documented type; the second rejects an empty result. They’re defensive rather than strictly necessary for these inputs, but help catch an invalid benchmark result.
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.
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.
There was an error while loading. Please reload this page.
|
Landed in 1a36610 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Avoid the cost of primordial push calls for each formatted entry. Signed-off-by: Roberto Bianchi <[email protected]> PR-URL: #67295 Reviewed-By: Gürgün Dayıoğlu <[email protected]> Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: James M Snell <[email protected]>
Avoid the cost of primordial push calls for each formatted entry. Signed-off-by: Roberto Bianchi <[email protected]> PR-URL: nodejs#67295 Reviewed-By: Gürgün Dayıoğlu <[email protected]> Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: James M Snell <[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.