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

chore: performance optimization #71

Merged
merged 1 commit into from
Aug 1, 2023
Merged

chore: performance optimization #71

merged 1 commit into from
Aug 1, 2023

Conversation

neSpecc
Copy link
Contributor

@neSpecc neSpecc commented Jul 31, 2023

Some performance optimizations to make the rendering of big documents faster.

  • Tools view creation (drawView()) removed from class constructor. It will make block construction faster. We'll render a view only when render is called
  • Acessing of this._element.innerHTML from data getter now won't force Layout if there is no _element yet. Instead of this, we call hydrate() when tool data is ready.

@neSpecc neSpecc merged commit 58ca2e5 into master Aug 1, 2023
@neSpecc neSpecc deleted the perf branch August 1, 2023 17:07
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.

None yet

3 participants