Skip to content

path: change `path.join` to use array dynamic allocation

Rodrigo Muino Tomonari requested to merge github/fork/HBSPS/path-posix-join into main

Change path.join to use array dynamic allocation instead of push.

                                                               confidence improvement accuracy (*)   (**)  (***)
path/join-posix.js n=100000 paths='/foo|bar||baz/asdf|quux|..'                 0.19 %       ±0.53% ±0.71% ±0.92%

Refs: https://github.com/nodejs/node/pull/54331

Merge request reports

Loading