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 context menu, defer building menu #565

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Conversation

tarkah
Copy link
Member

@tarkah tarkah commented Sep 14, 2024

Defers building the menu used for overlay until the menu is opened. This vastly reduces the number of elements we build during view and on a channel like #linux where the nicklist is huge, it reduces view times in debug mode from 41ms -> 30ms.

Copy link
Member

@casperstorm casperstorm left a comment

Choose a reason for hiding this comment

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

A clear difference when testing on Windows. Great win!

@tarkah tarkah merged commit 8d3c4e8 into main Sep 16, 2024
1 check passed
@tarkah tarkah deleted the fix/optimize-context-menu branch September 16, 2024 17:49
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.

2 participants