mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
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:
parent
5a54e4554a
commit
b212be08f6
1 changed files with 1567 additions and 564 deletions
1661
lib/path.js
1661
lib/path.js
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue