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

Long scripts == Slow Interface #1

Open
asteroidb612 opened this issue May 23, 2021 · 1 comment
Open

Long scripts == Slow Interface #1

asteroidb612 opened this issue May 23, 2021 · 1 comment

Comments

@asteroidb612
Copy link
Collaborator

asteroidb612 commented May 23, 2021

We can stress-test the app with a long script, like this one:
https://www.blumenthalarts.org/assets/doc/Hamilton-Lyrics-ACT-I1-e82b4f261a.pdf

It's not unrealistic - there are versions of Hamlet with 4000 lines! We render one DOM node per line, and 3000 nodes get slow quickly. Not even Html.Lazy can save us ;)

One fix may be to only render the nodes that would be on the screen at a given moment. This is tricky to get right! We'll figure it out if people find a good use case for big scripts.

@asteroidb612
Copy link
Collaborator Author

Another source for some directions https://discourse.elm-lang.org/t/performance-optimization/5105

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

1 participant