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

Optimize memory usage #177

Open
1 of 3 tasks
Tracked by #176
eigmax opened this issue Dec 24, 2023 · 0 comments
Open
1 of 3 tasks
Tracked by #176

Optimize memory usage #177

eigmax opened this issue Dec 24, 2023 · 0 comments

Comments

@eigmax
Copy link
Member

eigmax commented Dec 24, 2023

StarkContext takes huge memory space since we define the elements are from FieldExtension, but this is not a must.

  • Using base field as more as we can, take ctx.cm1_n for instance, cm1_n can use the Goldilocks element. Hence, we need figure out the proper element type for the members in StarkContext.
  • Drop const and cm PolsArray after using
  • Use mmap, instead of vec![] to allocate memory. Use memmap2, and setup MmapOptions::map_anon() to write arbitrary size data.
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

No branches or pull requests

1 participant