Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2019-01-12 06:36:26 +0300
committerBrian White <mscdex@mscdex.net>2019-08-28 05:14:15 +0300
commit34961c7b5fe8b2cf1722668666a7adcce3ab419c (patch)
treebf04b476c439f92a7b80ccdbd8cb280704542de9 /lib/internal/fixed_queue.js
parent01504904f3b220b68666d9c2d37e13615e0a2fc1 (diff)
process: improve nextTick performance
PR-URL: https://github.com/nodejs/node/pull/25461 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib/internal/fixed_queue.js')
-rw-r--r--lib/internal/fixed_queue.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/fixed_queue.js b/lib/internal/fixed_queue.js
index 7571a8f67e3..a073ab7fc32 100644
--- a/lib/internal/fixed_queue.js
+++ b/lib/internal/fixed_queue.js
@@ -102,7 +102,7 @@ module.exports = class FixedQueue {
}
shift() {
- const { tail } = this;
+ const tail = this.tail;
const next = tail.shift();
if (tail.isEmpty() && tail.next !== null) {
// If there is another queue, it forms the new tail.