Simplify call to V8::IdleNotification
authorRyan Dahl <ry@tinyclouds.org>
Sun, 21 Feb 2010 04:36:31 +0000 (20:36 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Sun, 21 Feb 2010 04:36:33 +0000 (20:36 -0800)
commitea4956f0465e5ea1109283f161c6ec43c30d722c
treecc3f29e2905379c15623c96d98d0ba4e4e354030
parent0485cc41d5c260458f590d249c073794047434fb
Simplify call to V8::IdleNotification

Run a max priority ev_timer every 2 seconds. If there aren't any pending
watchers then call V8::IdleNotification() once. This is slower at freeing
memory, but I think simpler and less aggressive.
src/node.cc