Commit 27def4fa authored by Manuel Valls's avatar Manuel Valls Committed by Michaël Zasso
Browse files

querystring: use String.prototype.split's limit

There's no need to add extra logic for it, `String.prototype.split`
already has a `limit` argument. By using this argument we avoid keeping
the whole array in memory, and V8 doesn't have to process the entire
string.

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


Reviewed-By: default avatarSakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: default avatarMichaël Zasso <mic.besace@gmail.com>
parent d2dc234d
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