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

Reduce ReaLearn's memory consumption #492

Closed
helgoboss opened this issue Dec 6, 2021 · 1 comment · Fixed by #508
Closed

Reduce ReaLearn's memory consumption #492

helgoboss opened this issue Dec 6, 2021 · 1 comment · Fixed by #508
Labels
enhancement New feature or request high priority realearn Related to ReaLearn

Comments

@helgoboss
Copy link
Owner

helgoboss commented Dec 6, 2021

At the moment, there are two issues in the ReaLearn application/UI layer (not processing layer) that make ReaLearn consume much more memory than should be necessary.

  • Issue 1 affects the memory consumption per mapping. This is related to the sheer amount of Rx subscriptions necessary to implement ReaLearn's totally reactive user interface. It will be tackled by partially moving away from Rx to a more scalable way of implementing the reactiveness.
  • Issue 2 affects global memory consumption. It's related to the fact that ReaLearn loads all presets into memory at startup time. This issue could be less relevant when issue 1 is solved but it's probably still a good idea to load presets directly from disk and thereby save memory.

There are a few additional places that could be improved regarding memory usage but they are almost non-relevant compared to these two primary issues.

@helgoboss
Copy link
Owner Author

Turned out issue 2 is not that relevant anymore now that issue 1 is fixed. A good bunch of large presets now takes only 5 MB, which is much better than the previous 70 MB.

@helgoboss helgoboss added the realearn Related to ReaLearn label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority realearn Related to ReaLearn
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant