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

Fix the slowness of the Silence UI #1235

Merged
merged 2 commits into from
Feb 9, 2018
Merged

Conversation

w0rm
Copy link
Member

@w0rm w0rm commented Feb 8, 2018

Closes #981.

@stuartnelson3 I think I figured this!! The slowness in Chrome was mostly caused by CSS. Certain CSS properties triggered too many compositing layers for each silence on the list. That is why it shows slow rendering on this graph (most time spent updating the layer tree):

30249657-c1ed1ae4-9640-11e7-96af-a32207b789fa

The fix was to set position: static instead of relative for each silence in the list!

I also made sure that the silences list is not filtered each time by caching it and then using lazy to render. Even though it might be premature optimisation, I think it squeezed the most performance out of the Elm architecture.

@w0rm w0rm changed the title Fix the slowness caused by updates and CSS Fix the slowness of the Silence UI Feb 8, 2018
@w0rm w0rm requested a review from stuartnelson3 February 8, 2018 19:36
Copy link
Contributor

@stuartnelson3 stuartnelson3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@stuartnelson3 stuartnelson3 merged commit 5101d65 into master Feb 9, 2018
@stuartnelson3 stuartnelson3 deleted the slow-silence-filtering branch February 9, 2018 09:42
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.

Silence UI is unresponsive with 1000s of silences
2 participants