Permalink
Browse files

Disable IdleWatcher

  • Loading branch information...
1 parent 4e7e2f8 commit a98d23d9058cdf71a452e71bf8831e4ba2445b50 @ry ry committed Apr 13, 2010
Showing with 6 additions and 3 deletions.
  1. +6 −2 src/node.cc
  2. +0 −1 wscript
View
@@ -21,7 +21,10 @@
#include <node_cares.h>
#include <node_net.h>
#include <node_file.h>
-#include <node_idle_watcher.h>
+#if 0
+// not in use
+# include <node_idle_watcher.h>
+#endif
#include <node_http.h>
#include <node_http_parser.h>
#include <node_signal_watcher.h>
@@ -1432,7 +1435,8 @@ static void Load(int argc, char *argv[]) {
// Initialize the C++ modules..................filename of module
IOWatcher::Initialize(process); // io_watcher.cc
- IdleWatcher::Initialize(process); // idle_watcher.cc
+ // Not in use at the moment.
+ //IdleWatcher::Initialize(process); // idle_watcher.cc
Timer::Initialize(process); // timer.cc
DefineConstants(process); // constants.cc
View
@@ -385,7 +385,6 @@ def build(bld):
src/node_stat_watcher.cc
src/node_stdio.cc
src/node_timer.cc
- src/node_idle_watcher.cc
"""
if not bld.env["USE_SYSTEM"]:
node.includes = """

2 comments on commit a98d23d

Does this disable to mechanism that runs the GC every 2 seconds if idle? Why is it being disabled? Can you point me at the discussion about this?

ry replied Apr 14, 2010

No. It's being disabled because it's no longer used - it was only used in the nextTick function.

Please sign in to comment.