Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Disable IdleWatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Apr 13, 2010
1 parent 4e7e2f8 commit a98d23d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/node.cc
Expand Up @@ -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>
Expand Down Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion wscript
Expand Up @@ -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 = """
Expand Down

2 comments on commit a98d23d

@polotek
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Author

@ry ry commented on a98d23d Apr 14, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.