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

Merge nextTick events #53

Merged
merged 2 commits into from
Jan 24, 2012
Merged

Merge nextTick events #53

merged 2 commits into from
Jan 24, 2012

Conversation

kriskowal
Copy link
Member

This patch unrolls all pending nextTick callbacks in a single event, which decreases timeline chatter and improves performance.

Kris Kowal added 2 commits January 23, 2012 18:02
Benoît pointed out that both local variables in the nextTick event queue
could be elimintated.

Also, unrolling nextTick introduces the problem that an exception thrown
from a task will stall any pending tasks until a new task is enqueued.
This I’ve fixed by adding a finally clause that will kick off a new
event to handle the remaining entires, while allowing the exception to
pass normally.
francoisfrisch pushed a commit that referenced this pull request Jan 24, 2012
@francoisfrisch francoisfrisch merged commit feec776 into montagejs:master Jan 24, 2012
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.

2 participants