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

LabelPanel: faster removeAllLabels #102

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

David-Ciz
Copy link

Hi,

removeAllLabels() in LabelPanel is very slow when called on larger amounts of labels. This is due to fireLabelsChanged() being called after every item.
This small change speeds up the deletion and increases stability.

@maarzt maarzt merged commit 3052e6b into juglab:master Sep 19, 2023
@maarzt
Copy link
Collaborator

maarzt commented Sep 19, 2023

@David-Ciz Thank you for the PR. It is nice simple and very reasonable. Sorry for the late merge.

Did you test if this fixes the performance problem as intended?

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