Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce setImmediate API #2056

Merged
merged 2 commits into from
Oct 22, 2020
Merged

Introduce setImmediate API #2056

merged 2 commits into from
Oct 22, 2020

Conversation

evgenykochetkov
Copy link
Contributor

Before, we used setTimeout(0, ctx) to schedule evaluation of a node as soon as possible.
But it would only mark node as dirty on the next millisecond and generate some unnecessary code.

setImmediate is a new API for this particular case that works faster, generates less code and occupies less RAM.

Copy link
Member

@nkrkv nkrkv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants