Skip to content

Reduce scrolling stutters #3386

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

Merged
merged 2 commits into from
Feb 1, 2021
Merged

Reduce scrolling stutters #3386

merged 2 commits into from
Feb 1, 2021

Conversation

hez2010
Copy link
Member

@hez2010 hez2010 commented Feb 1, 2021

Make use of SyncRoot to reduce unnecessary semaphores in BulkConcurrentObservableCollection.

I found there's no need to implement lock manually, there's already built-in SyncRoot for this (inspired by SynchronizedCollection<T>).

Fixes #3371

Note: it's no longer safe if you try to enumerate it without neither lock (list.SyncRoot) nor .ToList()

@yaira2 yaira2 added the ready to merge Pull requests that are approved and ready to merge label Feb 1, 2021
@yaira2 yaira2 merged commit 2c5c3e7 into files-community:main Feb 1, 2021
@yaira2
Copy link
Member

yaira2 commented Feb 1, 2021

@hez2010 Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scrolling stutters/jumps in v1.2
2 participants