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 performance issue of GTK DropDown when using an IEnumerable as a data store #2029

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

cwensley
Copy link
Member

@cwensley cwensley commented Sep 3, 2021

The NumericStepperSection went super slow as it was passing an enumerable for the culture drop down. Gtk enumerated through it each time it had to get an item or get the count, which it does often. Now we cache the enumeration in a lookup so that using an enumeration will go much faster, and will only enumerate it once.

@cwensley cwensley added this to the 2.6.0 milestone Sep 3, 2021
@cwensley cwensley merged commit dee24bc into picoe:develop Sep 3, 2021
@cwensley cwensley deleted the curtis/gtk-dropdown-performance branch September 3, 2021 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant