node/benchmark/url
Ben Noordhuis aff56cd2b4 lib: micro-optimize url.resolve()
Replace the call to Array#splice() with a faster open-coded version
that creates less garbage.

Add a new benchmark to prove it.  With the change applied, it scores
about 5% higher and that is nothing to sneeze at.

PR-URL: https://github.com/iojs/io.js/pull/184
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
2014-12-20 21:33:52 +01:00
..
url-parse.js benchmark: rename url.parse() benchmark 2014-12-20 21:33:21 +01:00
url-resolve.js lib: micro-optimize url.resolve() 2014-12-20 21:33:52 +01:00