summaryrefslogtreecommitdiff
path: root/test/message
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben.bridgewater@fintura.de>2016-02-04 22:36:48 +0100
committerTrevor Norris <trev.norris@gmail.com>2016-02-09 02:46:43 -0700
commit88307974e60346bc98c4e9f70a2b6918ccb6844f (patch)
tree17514c436f2d53029c0fe1f80aa9a3b0ba929fd9 /test/message
parent7764b6cb964ef8c481f3c348b76c6980e1e4f977 (diff)
downloadnode-new-88307974e60346bc98c4e9f70a2b6918ccb6844f.tar.gz
node: improve process.nextTick performance
Prevent deoptimization of process.nextTick by removing the try finally block. This is not necessary as the next tick queue will be reset anyway, no matter if the callback throws or not. Use a predefined array size prevents resizing the array and is therefor faster. PR-URL: https://github.com/nodejs/node/pull/5092 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/message')
-rw-r--r--test/message/eval_messages.out8
-rw-r--r--test/message/nexttick_throw.out2
-rw-r--r--test/message/stdin_messages.out8
3 files changed, 9 insertions, 9 deletions
diff --git a/test/message/eval_messages.out b/test/message/eval_messages.out
index 4fb3c7f56d..c299ec3ae1 100644
--- a/test/message/eval_messages.out
+++ b/test/message/eval_messages.out
@@ -7,7 +7,7 @@ SyntaxError: Strict mode code may not include a with statement
at Object.<anonymous> ([eval]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at nextTickCallbackWith0Args (node.js:*:*)
+ at _combinedTickCallback (node.js:*:*)
at process._tickCallback (node.js:*:*)
42
42
@@ -20,7 +20,7 @@ Error: hello
at Object.<anonymous> ([eval]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at nextTickCallbackWith0Args (node.js:*:*)
+ at _combinedTickCallback (node.js:*:*)
at process._tickCallback (node.js:*:*)
[eval]:1
throw new Error("hello")
@@ -31,7 +31,7 @@ Error: hello
at Object.<anonymous> ([eval]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at nextTickCallbackWith0Args (node.js:*:*)
+ at _combinedTickCallback (node.js:*:*)
at process._tickCallback (node.js:*:*)
100
[eval]:1
@@ -43,7 +43,7 @@ ReferenceError: y is not defined
at Object.<anonymous> ([eval]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at nextTickCallbackWith0Args (node.js:*:*)
+ at _combinedTickCallback (node.js:*:*)
at process._tickCallback (node.js:*:*)
[eval]:1
var ______________________________________________; throw 10
diff --git a/test/message/nexttick_throw.out b/test/message/nexttick_throw.out
index 1e03f6de84..72f04b0093 100644
--- a/test/message/nexttick_throw.out
+++ b/test/message/nexttick_throw.out
@@ -4,7 +4,7 @@
^
ReferenceError: undefined_reference_error_maker is not defined
at *test*message*nexttick_throw.js:*:*
- at nextTickCallbackWith0Args (node.js:*:*)
+ at _combinedTickCallback (node.js:*:*)
at process._tickCallback (node.js:*:*)
at Function.Module.runMain (module.js:*:*)
at startup (node.js:*:*)
diff --git a/test/message/stdin_messages.out b/test/message/stdin_messages.out
index 5790842607..2e08a70cc4 100644
--- a/test/message/stdin_messages.out
+++ b/test/message/stdin_messages.out
@@ -8,7 +8,7 @@ SyntaxError: Strict mode code may not include a with statement
at Object.<anonymous> ([stdin]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at nextTickCallbackWith0Args (node.js:*:*)
+ at _combinedTickCallback (node.js:*:*)
at process._tickCallback (node.js:*:*)
42
42
@@ -22,7 +22,7 @@ Error: hello
at Object.<anonymous> ([stdin]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at nextTickCallbackWith0Args (node.js:*:*)
+ at _combinedTickCallback (node.js:*:*)
at process._tickCallback (node.js:*:*)
[stdin]:1
@@ -34,7 +34,7 @@ Error: hello
at Object.<anonymous> ([stdin]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at nextTickCallbackWith0Args (node.js:*:*)
+ at _combinedTickCallback (node.js:*:*)
at process._tickCallback (node.js:*:*)
100
@@ -47,7 +47,7 @@ ReferenceError: y is not defined
at Object.<anonymous> ([stdin]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at nextTickCallbackWith0Args (node.js:*:*)
+ at _combinedTickCallback (node.js:*:*)
at process._tickCallback (node.js:*:*)
[stdin]:1