Ben Noordhuis
d8c178bc16
timers: fix performance regression
...
Fix a 5-7% performance regression in the http_simple benchmark that was
introduced by the following commits:
348d8cd
timers: remove _idleTimeout from item in .unenroll()
f2f3028
timers: fix memory leak in setTimeout
098fef6
timers: remember extra setTimeout() arguments when timeout==0
Fix suggested by Bert Belder.
2011-12-22 14:42:25 +01:00
James Hartig
348d8cd04a
timers: remove _idleTimeout from item in .unenroll()
...
Stops .active() from reactivating the timer.
Fixes #2114 .
2011-12-20 00:57:15 +01:00
Yoshihiro Kikuchi
f2f30286bf
timers: fix memory leak in setTimeout
...
Closing handle is leaked when setTimeout called with arguments which are
1. a callback
2. zero delay
(i.e. setTimeout(function(){}, 0); )
2011-12-18 01:50:01 +01:00
Ben Noordhuis
098fef6740
timers: remember extra setTimeout() arguments when timeout==0
...
Fixes #2079 .
2011-11-12 13:31:28 +01:00
Ryan Dahl
be0bb2dc13
Remove net_legacy timers_legacy
2011-10-11 13:11:54 -07:00
Ryan Dahl
d005cc5cc9
Enable new timer binding only on --use-uv
2011-06-29 15:14:55 +02:00
Bert Belder
d9aa9b54cf
Use timer_wrap instead of the old timer binding
2011-06-08 05:06:13 +02:00
Ryan Dahl
55048cdf79
Update copyright headers
2011-03-14 17:37:05 -07:00
Ryan Dahl
1a7830a92a
Fix debug flag in timers.js
2011-02-04 09:00:21 -08:00
Ryan Dahl
bfb6a67d60
Another fix for process.assert
2011-01-27 16:59:28 -08:00
Ryan Dahl
2ec4cd5525
factor linklist code into own file
2011-01-18 14:26:32 -08:00
Ryan Dahl
29f48d48e5
A few more list clean ups
2011-01-13 02:22:09 -08:00
Ryan Dahl
09994438e5
Expose link-list from timers.js; add tests
2011-01-13 02:10:09 -08:00
Ryan Dahl
86160a8807
NODE_DEBUG=timer instead of bitflags
2011-01-11 16:53:05 -08:00
Ryan Dahl
82e9da9fb7
Allow one extra ms in timer diff
...
Fixes sporadic test-next-tick-ordering.js failures
2011-01-11 16:51:09 -08:00
Ryan Dahl
dd53ceebe4
lint
2010-12-01 20:59:06 -08:00
Michael W
5f3464cf4e
fixed timers, whoops.
...
Fixes issue https://github.com/ry/node/issues/issue/481
2010-11-30 22:33:29 -08:00
Michael W
645c3b3713
Fixed: clearTimeouts calling multiple times
...
When clearTimeouts was called on a timer multiple times, it would break the
doubly-linked list along with future timeouts. This patch fixes that.
2010-11-29 18:17:13 -08:00
Ryan Dahl
7a48fd8455
Handle null values in clearTimeout
2010-10-29 00:00:43 -07:00
Ryan Dahl
bc47353bbe
Use the timer list for setTimeout
2010-10-26 14:53:18 -07:00
Ryan Dahl
79944006e2
Move setTimeout and friends into timers module
2010-10-26 14:53:17 -07:00
Ryan Dahl
5cc29b80f2
Move idle timers into its own module
2010-10-26 14:53:17 -07:00