node/benchmark/querystring
Brian White 46be1f4d0c 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: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2016-02-15 23:14:13 +11:00
..
querystring-parse.js querystring: improve parse() performance 2016-02-15 23:14:12 +11:00
querystring-stringify.js querystring: improve escape() performance 2016-02-15 23:14:13 +11:00