Commit aff56cd2 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

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: default avatarChris Dickinson <christopher.s.dickinson@gmail.com>
parent 6b2af5f0
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