Files
node/lib
Andras 6f75b6672c timers: optimize setImmediate()
Save the setImmediate() callback arguments into an array instead of a
closure, and invoke the callback on the arguments from an optimizable
function.

  60% faster setImmediate with 0 args (15% if self-recursive)
  4x faster setImmediate with 1-3 args, 2x with > 3
  seems to be faster with less memory pressure when memory is tight

Changes:
- use L.create() to build faster lists
- use runCallback() from within tryOnImmediate()
- save the arguments and do not build closures for the callbacks

PR-URL: https://github.com/nodejs/node/pull/6436
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2016-06-29 11:02:25 +02:00
..
2016-06-29 11:02:25 +02:00
2015-10-08 17:32:08 -07:00
2016-05-26 11:28:45 +02:00
2016-06-07 13:51:14 -06:00
2016-05-17 11:05:18 -07:00
2016-05-18 02:12:28 -04:00
2016-06-17 17:03:49 +02:00
2016-06-29 10:43:07 +02:00
2016-06-29 11:02:25 +02:00
2016-06-01 18:57:45 -04:00
2016-05-23 12:16:41 +02:00