mirror of https://github.com/lukechilds/node.git
Browse Source
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: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>process-exit-stdio-flushing
Manuel Valls
9 years ago
committed by
Michaël Zasso
1 changed files with 6 additions and 5 deletions
Loading…
Reference in new issue