Commit b212be08 authored by Brian White's avatar Brian White Committed by James M Snell
Browse files

path: performance improvements on all platforms

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: https://github.com/nodejs/node/pull/5123


Reviewed-By: default avatarRoman Reiss <me@silverwind.io>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 5a54e455
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