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

Optimize single page listening #25

Open
Hardelele opened this issue Mar 30, 2022 · 1 comment
Open

Optimize single page listening #25

Hardelele opened this issue Mar 30, 2022 · 1 comment

Comments

@Hardelele
Copy link
Member

Now its works alternately and heavily loads the page.

Need to create some virtual DOM for rerender and start processing only after certain condition.

@Hardelele
Copy link
Member Author

Hardelele commented Apr 3, 2022

Make two lists. Add them into context.

  1. List of text blocks for render.
  2. List of events to contain.

First list must be processed right away the new element come in.
The second one must me processed only when it complited.

When we recive list of events it will be better to process whole page again. Or make sure the items that being processed are topmost parent elements.

Also making the parser work exclusively only with lists of elements will speed up the rendering of the page, by allowing parallel processing.

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

No branches or pull requests

1 participant