Repository navigation
Conversation
Use indexed writes when collecting matching parameter values. This improves getAll throughput without changing result order. Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
|
Review requested:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #66872 +/- ##
==========================================
+ Coverage 90.49% 90.66% +0.16%
==========================================
Files 797 797
Lines 278221 278262 +41
Branches 53462 53509 +47
==========================================
+ Hits 251786 252293 +507
+ Misses 16809 16339 -470
- Partials 9626 9630 +4
🚀 New features to boost your workflow:
|
|
FYI for others, const arr = [];
arr[arr.length] = 'X'Keeps an array PACKED in all active release lines, so it is a valid optimization for avoiding Primordials |
Commit Queue failedThis pull request has multiple commits, but no landing policy was selected. Add
commit-queue-squash
The pull request was removed from the Commit Queue and labeled
commit-queue-failed
Full Commit Queue output |
Use indexed appends instead of primordial push calls when collecting
matching values in
URLSearchParams.getAll(). This reduces the cost ofreading repeated query parameters while preserving result order.
Local benchmarks on Apple M2/macOS with V8 15.6 show higher throughput:
Across 36 cases and 4,320 samples, nine gains were confirmed in both
comparison directions after Holm correction. No corrected-significant
regressions were detected.