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

Asynchronicity improvements #2753

Merged
merged 24 commits into from
Sep 19, 2024
Merged

Asynchronicity improvements #2753

merged 24 commits into from
Sep 19, 2024

Conversation

marticliment
Copy link
Owner

@marticliment marticliment commented Sep 18, 2024

Currently, asynchronicity is only used when waiting for subprocesses to write on stout, while all the parsing is done on the UI thread, causing some stuttering and small lagging.

This PRs refractors the PackageManager's internal calls into synchronous methods, that are then called on a thread via Task.Run, moving all the packagemanager-related processing to the background and improving UI smoothness.

The most notable change is the lack of stuttering when installed packages are loaded and added to the list

@marticliment marticliment marked this pull request as ready for review September 19, 2024 21:47
@marticliment marticliment merged commit c729888 into main Sep 19, 2024
2 checks passed
@marticliment marticliment deleted the better-async branch October 22, 2024 16:13
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.

1 participant