Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make everything async #71

Merged
merged 4 commits into from
Apr 7, 2023
Merged

Make everything async #71

merged 4 commits into from
Apr 7, 2023

Conversation

trimental
Copy link
Collaborator

Use Tokio to make everything async instead of using threads. This mainly impacts image loading which used to use thread spacing before. I feel as though this is a bit cleaner at the cost of feeling a bit 'magic-like'. I'm interested to hear your thoughts about this @CosmicHorrorDev.

I haven't done any benchmarking against the old implementation yet. This should help with streaming images directly into a compressed format.

@CosmicHorrorDev
Copy link
Collaborator

I'll have to take a closer look this weekend, but I'm interested in switching things over to async since it seems to be a better fit for UIs in general. Exciting 😄

@CosmicHorrorDev
Copy link
Collaborator

Since this has some overlap with #69 I'm okay with handling getting this merged first and then I can rebase that branch on top btw

@trimental
Copy link
Collaborator Author

I actually did this branch over #69 initially and just seperated them. I'll merge yours tonight and then rebase this since I already have the code for it.

@trimental trimental merged commit 7dceea8 into main Apr 7, 2023
@CosmicHorrorDev CosmicHorrorDev deleted the async branch September 15, 2024 18:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants