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: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Brian White authored and James M Snell committed 2016-02-09 20:35:46 -08:00
1 parent 5a54e4554a
commit b212be08f6
1 file changed
+1567 -564
+1567 -564
View File
File diff suppressed because it is too large. Load diff