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

refactor: faster action sensitivity updates #1333

Merged
merged 2 commits into from Jun 23, 2020
Merged

Conversation

ckerr
Copy link
Member

@ckerr ckerr commented Jun 23, 2020

Walking through a long list of QModelIndexes is quite expensive, but most of our tests are only done on selected rows. It's rare for all rows to be selected, so walk through selected rows instead of all of them.

This is a minor improvement that I found while working on a different piece of code. PRing it here separately so that 1 PR == 1 idea.

Walking through a long list of QModelIndexes is quite expensive, but most
of our tests are only done on selected rows. It's rare for all rows to be
selected, so walk through selected rows instead of all of them.
@ckerr ckerr added the scope:qt label Jun 23, 2020
@ckerr ckerr merged commit 83e4e4c into master Jun 23, 2020
@ckerr ckerr deleted the faster-action-enable branch June 23, 2020 17:16
@ckerr ckerr added the type:perf A code change that improves performance label Oct 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:qt type:perf A code change that improves performance
Development

Successfully merging this pull request may close these issues.

None yet

1 participant