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 memory usage of Actions #69

Open
J08nY opened this issue Sep 3, 2024 · 0 comments
Open

Improve memory usage of Actions #69

J08nY opened this issue Sep 3, 2024 · 0 comments
Labels
enhancement New feature or request performance Something is slow

Comments

@J08nY
Copy link
Owner

J08nY commented Sep 3, 2024

When simulation is used on a large scale ocassionally one wants to store all actions in a context for later analysis (i.e. all IVs of potentially many executions). This results in signficant memory usage that should be improved.

Some of the memory usage is unavoidable. For example a formula application may have about 15 operations, each of which needs to store a field element. Plus other metadata that is stored in the actions necessarily takes up some space.

Some ideas to reduce it:

  • Use __slots__.
  • Simplify the FormulaAction attributes (some info may be duplicated due to the API, maybe turn some into properties?).
@J08nY J08nY added enhancement New feature or request performance Something is slow labels Sep 3, 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 performance Something is slow
Projects
None yet
Development

No branches or pull requests

1 participant