node: improve performance of nextTick
authorTrevor Norris <trev.norris@gmail.com>
Fri, 27 Feb 2015 05:41:54 +0000 (22:41 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Tue, 3 Mar 2015 20:45:19 +0000 (13:45 -0700)
commite0835c9cda8ad515e407baff0c3515d6f105fd14
treef285994d83537c058c7b087df705abd6c9e6cc77
parent9741291fe9b6b96f41c284032ef6ac9a4750bc63
node: improve performance of nextTick

Couple micro optimizations to improve performance of process.nextTick().
Removes ~60ns of execution time.

Also added small threshold to test that allows timer to fire early on
the order if microseconds.

PR-URL: https://github.com/iojs/io.js/pull/985
Reviewed-By: Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
src/node.js
test/parallel/test-timers-first-fire.js