Skip to content

Performance difference due to nextTick #68

Answered by ghost
BridgeAR asked this question in Q&A
Discussion options

You must be logged in to vote

There are performance issues with process.nextTick and the accompanying node::MakeCallback but that's not the primary reason they are swapped (we only gain maybe 7% from doing this).

This project is a standalone V8 runtime - you can compile it as a standalone binary that runs on its own very much like Deno and Node.js itself. This project cannot depend on anything Node.js, and has to replace all parts that are very tied to only Node.js. Basically anything inside node:: namespace is strictly forbidden here.

process.nextTick is one such thing as it enforces a particular way C++ must call JS via (node::MakeCallback).

Now, the project is standalone but it can also work as a Node.js addon, whe…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #68 on December 09, 2020 05:47.