mirror of https://github.com/lukechilds/node.git
Browse Source
Instead of slicing the first element off of the matches, shift and then return. This improves performance of the following path functions: - basename: 18-20% - extname: 60-70% - dirname: 18-20% - parse: 20-25% PR-URL: https://github.com/nodejs/node/pull/3034 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>v5.x
Evan Lucas
9 years ago
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue