Skip to content

querystring: use `String.prototype.split`'s `limit`

Rodrigo Muino Tomonari requested to merge github/fork/manvalls/patch-1 into master

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.

Merge request reports

Loading