diff options
author | Ruben Bridgewater <ruben.bridgewater@fintura.de> | 2016-02-04 22:36:48 +0100 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2016-02-09 02:46:43 -0700 |
commit | 88307974e60346bc98c4e9f70a2b6918ccb6844f (patch) | |
tree | 17514c436f2d53029c0fe1f80aa9a3b0ba929fd9 /test/message/eval_messages.out | |
parent | 7764b6cb964ef8c481f3c348b76c6980e1e4f977 (diff) | |
download | android-node-v8-88307974e60346bc98c4e9f70a2b6918ccb6844f.tar.gz android-node-v8-88307974e60346bc98c4e9f70a2b6918ccb6844f.tar.bz2 android-node-v8-88307974e60346bc98c4e9f70a2b6918ccb6844f.zip |
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/eval_messages.out')
-rw-r--r-- | test/message/eval_messages.out | 8 |
1 files changed, 4 insertions, 4 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 |