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

Better throttling #630

Open
gordonwoodhull opened this issue Jul 6, 2014 · 5 comments
Open

Better throttling #630

gordonwoodhull opened this issue Jul 6, 2014 · 5 comments

Comments

@gordonwoodhull
Copy link
Contributor

As pointed out here: https://groups.google.com/forum/m/#!topic/dc-js-user-group/3AlQht_8Eqs

The current brush throttling is actually a debounce: it prevents more than one brushing event from happening in a time interval, but it also prevents any events from happening while there are events coming in at a higher rate, and then just fires the last one at the end.

What we really want is to fire redraws as fast as we can without them backing up. So we start the first redraw, then throw out all but the last event we get while that's happening, then start the next redraw, etc.

Also see #627: some would prefer having no redraws at all until the end of brushing.

@HamsterHuey

This comment has been minimized.

@gordonwoodhull

This comment has been minimized.

@HamsterHuey

This comment has been minimized.

@Frozenlock
Copy link
Contributor

Just learned about requestidlecallback from the video linked here : https://reactjs.org/blog/2018/03/01/sneak-peek-beyond-react-16.html

Perhaps there's something that can be done with it?

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

No branches or pull requests

4 participants