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

perf: improve render(), append() & updateTooltip() performance #135

Merged
merged 15 commits into from
Dec 7, 2021

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Sep 24, 2021

Includes slight behavior changes, see commit messages.

TODO:

Reduce the amount of checks
@WofWca WofWca changed the title perf: improve render() performance a bit perf: improve render() and append() performance a bit Sep 28, 2021
WofWca added 2 commits October 7, 2021 10:56
This changes behavior a bit - when `render(` is passed a canvas different
from `this.canvas`
@WofWca WofWca changed the title perf: improve render() and append() performance a bit perf: improve render(), append() & updateTooltip() performance Oct 7, 2021
@WofWca WofWca mentioned this pull request Oct 17, 2021
…tore()`"

This reverts commit f7b488e.

For some reason in Chromium 95.0.4638.54 (and maybe others) that change
caused `render()` CPU time to grow over time. For me on the
`examples/example1.html` page it would grow from 0.5ms to 50ms over 5 minutes
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