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

Improve boot speed #1423

Merged
merged 2 commits into from
Dec 26, 2024
Merged

Improve boot speed #1423

merged 2 commits into from
Dec 26, 2024

Conversation

KrahJohlito
Copy link
Member

@KrahJohlito KrahJohlito commented Dec 20, 2024

Pull Request checklist

Note: these are not necessarily requirements

  • I reformatted the code with clang-format
  • I checked to make sure my submission worked
  • I am the author of submission or have permission from the original author
  • Requires update of the PS2SDK or other dependencies
  • Others (please specify below)

Pull Request description

By refactoring the scanForISO function we can save a bit of time at launch and by removing the stat calls we can improve the loading times even further.. size is only used to display on the info page so it doesn't make much sense to populate it at boot for every game. This was tested on my fork (which uses an older build environment) but produced great results.

Cache build time from 9 mins down to 3-5mins and cache read time down to 7 seconds from like 5 mins.. has not been tested with "latest" environment so tests are welcome. This will have no affect on APA HDD as it uses different functions which I haven't touched so BDM and SMB only.

Thanks to @mystyq for testing.

@AKuHAK AKuHAK merged commit 43c2718 into ps2homebrew:master Dec 26, 2024
17 checks passed
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