Commit bd1bd7e3 authored by Ruben Verborgh's avatar Ruben Verborgh Committed by Trevor Norris
Browse files

timer: Improve performance of callbacks

setImmediate, setTimeout, and setInterval were called in an inefficient
way, especially in the presence of arguments.  This optimization
improves their performance, with special cases for up to 4 arguments.
Performance of setImmediate increases with 35%, setInterval with 60%,
setTimeout with 70%.

PR-URL: https://github.com/iojs/io.js/pull/406


Reviewed-by: default avatarTrevor Norris <trev.norris@gmail.com>
Reviewed-by: default avatarChristian Tellnes <christian@tellnes.com>
parent 6190a223
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