Commit 00638ac1 authored by Brian White's avatar Brian White
Browse files

querystring: improve escape() performance

This commit improves escape() performance by up to 15% with the
existing querystring-stringify benchmarks by reducing the number
of string concatentations. A potential deopt is also avoided by
making sure the index passed to charCodeAt() is within bounds.

PR-URL: https://github.com/nodejs/node/pull/5012


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarRoman Reiss <me@silverwind.io>
Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
parent c8e650de
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment