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

Quilt (& intermediary) support #2

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

anonymous123-code
Copy link

  • Intermediary and Quilt support
  • Does not add stuff required for dependency stuff (And thus proper launcher support, although its usable with manual component editing)
  • No caching (sha and content-length require two requests per library)
  • It uses the corresponding last-modified header, although those arent the most reliable (especially quilt's has a cutoff at 2023-04-30)

@kb-1000
Copy link
Member

kb-1000 commented Aug 15, 2023

Okay so, the thing here is that I'm not sure if I'd want to run this code twice per hour without caching. How's the performance on this?

@anonymous123-code
Copy link
Author

anonymous123-code commented Aug 16, 2023

It likely isn't good enough tbh. The code takes like 10 minutes (even when rerunning). I will change this to use caching when I have more time.

- Lots of async (It felt like caching isnt even needed anymore)
- Lots of caching (Best case only the request for update checking is needed)
- Lots of async
- Lots of caching (Best case only the request for update checking is needed)
- cargo fmt
@anonymous123-code
Copy link
Author

anonymous123-code commented Aug 19, 2023

I now reworked everything to be concurrent and implemented caching. For downloads, the hashes are stored per version, not per download version. So there is room for more caching, although I doubt it is necessary. https://helixlauncher-meta-test.pages.dev/

@anonymous123-code
Copy link
Author

Note that because Im using buffer_unordered, the download Vec order is inconsistent, although this is cached. If this is a problem, it can be changed to buffered.

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.

2 participants