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

Storage manager optimizations #205

Merged
merged 6 commits into from
May 3, 2023

Conversation

mthiesen
Copy link
Contributor

@mthiesen mthiesen commented May 2, 2023

Currently StorageManager returns its configs by value, which is unnecessary and inefficient. In particular this is a problem with the Turbo addon, which reads its config on every process() call.

With this PR StorageManager returns configs as a const reference. I have also moved the getters to the header so that they can be inlined by the compiler.

Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice thank you for taking care of this!

This has been on my to-do list for a while. I had to use & for ps4Options because of memory limitations, and this takes care of everything else!

@arntsonl arntsonl merged commit a0f7f0f into OpenStickCommunity:main May 3, 2023
henrebotha pushed a commit to henrebotha/GP2040-CE-1 that referenced this pull request May 3, 2023
* Build makefsdata for Linux w/ MUSL

* Restored deflate support to makefsdata

* WIP
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