diff options
author | Ryan <ry@tinyclouds.org> | 2009-09-04 12:15:21 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-09-04 12:15:21 +0200 |
commit | 733ee426dcb6a2d3a8210b9d283cc6d85ffc1f17 (patch) | |
tree | 96afa4391510c82818d5c98848c897cf81a2d46a | |
parent | 2097b9d2e532624ab96cb548ac81d370bceea9fe (diff) | |
download | node-new-733ee426dcb6a2d3a8210b9d283cc6d85ffc1f17.tar.gz |
Fix slowness in debug run of test-tcp-many-clients
I'm not sure what is actually causing
node_g test/mjsunit/test-tcp-many-clients.js
to run slowly, but I traced the problem to
afd9e714d3937288de51116a45234c1e86a9444f.
Somehow it has to do with promoting the compilation of src/util.js. That
change wasn't actually intended to be included in afd9e7 commit anyway, so
I'm reverting it here.
-rw-r--r-- | src/node.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node.cc b/src/node.cc index 3b7f7ada9d..00554f8a4b 100644 --- a/src/node.cc +++ b/src/node.cc @@ -275,9 +275,6 @@ Load (int argc, char *argv[]) EventEmitter::constructor_template->GetFunction()); Promise::Initialize(node_obj); - ExecuteNativeJS("util.js", native_util); - ExecuteNativeJS("events.js", native_events); - Stdio::Initialize(node_obj); Timer::Initialize(node_obj); ChildProcess::Initialize(node_obj); @@ -302,6 +299,8 @@ Load (int argc, char *argv[]) HTTPServer::Initialize(http); HTTPConnection::Initialize(http); + ExecuteNativeJS("util.js", native_util); + ExecuteNativeJS("events.js", native_events); ExecuteNativeJS("http.js", native_http); ExecuteNativeJS("file.js", native_file); ExecuteNativeJS("node.js", native_node); |