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

Rewrite LoadPlaylists to use Tasks #3527

Merged
merged 5 commits into from Jun 28, 2022
Merged

Conversation

AiAe
Copy link
Member

@AiAe AiAe commented Jun 27, 2022

LoadPlaylists now uses Tasks and its rewriten in better optimized way.

Changed Dictionary to ConcurrentDictionary because its thread safe.
Tasks uses thread pool.

Some tests:
From original code: RUNTIME - DEBUG: 00:00:37.1226258
New code: RUNTIME - DEBUG: 00:00:07.1438216

All tests are done with https://www.mediafire.com/file/cb6yrh0f0bpyyuv/quaver.zip/file

Quaver.Shared/Database/Playlists/PlaylistManager.cs Outdated Show resolved Hide resolved
Quaver.Shared/Database/Playlists/PlaylistManager.cs Outdated Show resolved Hide resolved
Quaver.Shared/Database/Playlists/PlaylistManager.cs Outdated Show resolved Hide resolved
@AiAe AiAe requested a review from Swan June 28, 2022 10:00
@Swan Swan merged commit 5055c02 into Quaver:ui-redesign Jun 28, 2022
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.

None yet

2 participants