Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Don't call _fireSelectionChanged() twice #4867

Merged
merged 1 commit into from
Aug 22, 2013
Merged

Conversation

redmunds
Copy link
Contributor

Working set selection was getting painted twice. _updateListSelection() already calls _fireSelectionChanged(), so don't call it again.

This saves ~50ms (of 190ms) on my Windows 7 system.

After removing _fireSelectionChanged() call from _handleDocumentSelectionChange(), there was nothing left except call to _updateListSelection(), so I removed _handleDocumentSelectionChange() function and just call _updateListSelection() directly.

This is for #4757, but there may be more we can do.

@ghost ghost assigned RaymondLim Aug 22, 2013
@RaymondLim
Copy link
Contributor

Looks good. The extra call to _fireSelectionChanged() was introduced in pull request #1290 to fix #1280. So I verified that #1280 is still fixed with this pull request.

RaymondLim added a commit that referenced this pull request Aug 22, 2013
Don't call _fireSelectionChanged() twice
@RaymondLim RaymondLim merged commit 59a022a into master Aug 22, 2013
@jasonsanjose jasonsanjose deleted the randy/issue-4757 branch August 22, 2013 22:30
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants