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 — querystring: speed up default parse and unescape by anonrig · Pull Request #66175 · nodejs/node Conversation
Member
Skip the Custom separators, This change was implemented with assistance from a closed-source coding agent. I verified the source, official Official benchesThree-run medians,
Tests
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Skip the %XX walk in unescapeBuffer when the input has no '%'. Add a dedicated '&'/'=' scanner for the default parse path so it does not build separator code arrays or run the multi-char state machine. Official benchmark/querystring/querystring-parse.js: encodemany is about 38% faster, manyblankpairs about 17%, encodelast about 10%, noencode about 8%. Official querystring-unescapebuffer.js with no escapes is about 36% faster. Assisted-by: a closed-source coding agent Signed-off-by: Yagiz Nizipli <[email protected]> Co-authored-by: Yagiz Nizipli <[email protected]>
jasnell
approved these changes
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 #66175 +/- ## ========================================== + Coverage 90.27% 90.30% +0.03% ========================================== Files 790 790 Lines 271651 272173 +522 Branches 51842 51978 +136 ========================================== + Hits 245228 245785 +557 + Misses 16928 16885 -43 - Partials 9495 9503 +8
🚀 New features to boost your workflow:
|
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 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.
There was an error while loading. Please reload this page.
|
Landed in 6a6e09e |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Skip the %XX walk in unescapeBuffer when the input has no '%'. Add a dedicated '&'/'=' scanner for the default parse path so it does not build separator code arrays or run the multi-char state machine. Official benchmark/querystring/querystring-parse.js: encodemany is about 38% faster, manyblankpairs about 17%, encodelast about 10%, noencode about 8%. Official querystring-unescapebuffer.js with no escapes is about 36% faster. Assisted-by: a closed-source coding agent Signed-off-by: Yagiz Nizipli <[email protected]> Co-authored-by: Yagiz Nizipli <[email protected]> PR-URL: #66175 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Skip the %XX walk in unescapeBuffer when the input has no '%'. Add a dedicated '&'/'=' scanner for the default parse path so it does not build separator code arrays or run the multi-char state machine. Official benchmark/querystring/querystring-parse.js: encodemany is about 38% faster, manyblankpairs about 17%, encodelast about 10%, noencode about 8%. Official querystring-unescapebuffer.js with no escapes is about 36% faster. Assisted-by: a closed-source coding agent Signed-off-by: Yagiz Nizipli <[email protected]> Co-authored-by: Yagiz Nizipli <[email protected]> PR-URL: nodejs#66175 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Skip the %XX walk in unescapeBuffer when the input has no '%'. Add a dedicated '&'/'=' scanner for the default parse path so it does not build separator code arrays or run the multi-char state machine. Official benchmark/querystring/querystring-parse.js: encodemany is about 38% faster, manyblankpairs about 17%, encodelast about 10%, noencode about 8%. Official querystring-unescapebuffer.js with no escapes is about 36% faster. Assisted-by: a closed-source coding agent Signed-off-by: Yagiz Nizipli <[email protected]> Co-authored-by: Yagiz Nizipli <[email protected]> PR-URL: #66175 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
In the non-default parse() path, a key with more than one percent escape could corrupt non-ASCII characters in its value. Keep key characters out of the value's encoding check. Assisted-by: claude:opus-5.5 Signed-off-by: vedchaudhari <[email protected]> PR-URL: #66553 Refs: #66175 Reviewed-By: Yagiz Nizipli <[email protected]>
In the non-default parse() path, a key with more than one percent escape could corrupt non-ASCII characters in its value. Keep key characters out of the value's encoding check. Assisted-by: claude:opus-5.5 Signed-off-by: vedchaudhari <[email protected]> PR-URL: #66553 Refs: #66175 Reviewed-By: Yagiz Nizipli <[email protected]>
Skip the %XX walk in unescapeBuffer when the input has no '%'. Add a dedicated '&'/'=' scanner for the default parse path so it does not build separator code arrays or run the multi-char state machine. Official benchmark/querystring/querystring-parse.js: encodemany is about 38% faster, manyblankpairs about 17%, encodelast about 10%, noencode about 8%. Official querystring-unescapebuffer.js with no escapes is about 36% faster. Assisted-by: a closed-source coding agent Signed-off-by: Yagiz Nizipli <[email protected]> Co-authored-by: Yagiz Nizipli <[email protected]> PR-URL: #66175 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
In the non-default parse() path, a key with more than one percent escape could corrupt non-ASCII characters in its value. Keep key characters out of the value's encoding check. Assisted-by: claude:opus-5.5 Signed-off-by: vedchaudhari <[email protected]> PR-URL: #66553 Refs: #66175 Reviewed-By: Yagiz Nizipli <[email protected]>
Skip the %XX walk in unescapeBuffer when the input has no '%'. Add a dedicated '&'/'=' scanner for the default parse path so it does not build separator code arrays or run the multi-char state machine. Official benchmark/querystring/querystring-parse.js: encodemany is about 38% faster, manyblankpairs about 17%, encodelast about 10%, noencode about 8%. Official querystring-unescapebuffer.js with no escapes is about 36% faster. Assisted-by: a closed-source coding agent Signed-off-by: Yagiz Nizipli <[email protected]> Co-authored-by: Yagiz Nizipli <[email protected]> PR-URL: #66175 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
In the non-default parse() path, a key with more than one percent escape could corrupt non-ASCII characters in its value. Keep key characters out of the value's encoding check. Assisted-by: claude:opus-5.5 Signed-off-by: vedchaudhari <[email protected]> PR-URL: #66553 Refs: #66175 Reviewed-By: Yagiz Nizipli <[email protected]>
Skip the %XX walk in unescapeBuffer when the input has no '%'. Add a dedicated '&'/'=' scanner for the default parse path so it does not build separator code arrays or run the multi-char state machine. Official benchmark/querystring/querystring-parse.js: encodemany is about 38% faster, manyblankpairs about 17%, encodelast about 10%, noencode about 8%. Official querystring-unescapebuffer.js with no escapes is about 36% faster. Assisted-by: a closed-source coding agent Signed-off-by: Yagiz Nizipli <[email protected]> Co-authored-by: Yagiz Nizipli <[email protected]> PR-URL: #66175 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gürgün Dayıoğlu <[email protected]>
In the non-default parse() path, a key with more than one percent escape could corrupt non-ASCII characters in its value. Keep key characters out of the value's encoding check. Assisted-by: claude:opus-5.5 Signed-off-by: vedchaudhari <[email protected]> PR-URL: #66553 Refs: #66175 Reviewed-By: Yagiz Nizipli <[email protected]>
In the non-default parse() path, a key with more than one percent escape could corrupt non-ASCII characters in its value. Keep key characters out of the value's encoding check. Assisted-by: claude:opus-5.5 Signed-off-by: vedchaudhari <[email protected]> PR-URL: nodejs#66553 Refs: nodejs#66175 Reviewed-By: Yagiz Nizipli <[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.