Skip to content

Commit

Permalink
path: performance improvements on all platforms
Browse files Browse the repository at this point in the history
This commit significantly improves performance of all path functions.

Optimization strategies include:
* Replacing regexps with manual parsers
* Avoiding unnecessary array creation (including split() + join())
* Returning earlier where possible to avoid unnecessary work
* Minimize unnecessary string creation and concatenations
* Combining string iterations

PR-URL: nodejs#5123
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex authored and jasnell committed Feb 10, 2016
1 parent 5a54e45 commit b212be0
Showing 1 changed file with 1,466 additions and 463 deletions.
Loading

0 comments on commit b212be0

Please sign in to comment.