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

Debounce drawGutter with requestAnimationFrame #164

Merged
merged 1 commit into from
Oct 3, 2016
Merged

Conversation

zertosh
Copy link
Collaborator

@zertosh zertosh commented Sep 29, 2016

See #163 (comment).

This is a first step towards batching DOM updates. Although this is a huge improvement over the current setup, it can be done much better. Right now, all the work is still happening upfront it's just debounced.

From: https://github.com/facebook/nuclide

Before:

before

After:

after

This takes init time from 127ms to 55ms.

cc: @jerone

@zertosh zertosh merged commit b0f88a9 into master Oct 3, 2016
@zertosh zertosh deleted the raf-debounce branch October 3, 2016 04:48
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