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

Speed up history for large amounts of commits #745

Closed
joepio opened this issue Dec 18, 2023 · 1 comment
Closed

Speed up history for large amounts of commits #745

joepio opened this issue Dec 18, 2023 · 1 comment
Assignees

Comments

@joepio
Copy link
Member

joepio commented Dec 18, 2023

If I open a large document like the test document and view its history, my M1 macbook takes 10+ seconds to load.

It creates resources for every single change.

  • Fetching takes 1.6s for all collections
  • CPU time takes 15s

Maybe rendering of the 50.000 DOM nodes is the slow thing? Maybe it's creating the resources?

Some ways to fix this

Find stupid stuff in the code

This would be my hunch

Fetch representations from the server

For every (say 100) verions, just use the /versions endpoint.
Will be faster I think, but also more complex as code

Only build representations client-side on click

Maybe again use the server to fetch representations?

@joepio
Copy link
Member Author

joepio commented Dec 19, 2023

Polle's solution reduces the issue by quite a large margin (x4?), although it will still be slow for even larger resources. The addition of the loading page makes this more bearable at least.

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

2 participants