Skip to content

Commit 733ee42

Browse files
committed
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 afd9e71. 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.
1 parent 2097b9d commit 733ee42

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/node.cc

+2-3
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,6 @@ Load (int argc, char *argv[])
275275
EventEmitter::constructor_template->GetFunction());
276276
Promise::Initialize(node_obj);
277277

278-
ExecuteNativeJS("util.js", native_util);
279-
ExecuteNativeJS("events.js", native_events);
280-
281278
Stdio::Initialize(node_obj);
282279
Timer::Initialize(node_obj);
283280
ChildProcess::Initialize(node_obj);
@@ -302,6 +299,8 @@ Load (int argc, char *argv[])
302299
HTTPServer::Initialize(http);
303300
HTTPConnection::Initialize(http);
304301

302+
ExecuteNativeJS("util.js", native_util);
303+
ExecuteNativeJS("events.js", native_events);
305304
ExecuteNativeJS("http.js", native_http);
306305
ExecuteNativeJS("file.js", native_file);
307306
ExecuteNativeJS("node.js", native_node);

0 commit comments

Comments
 (0)