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

feat: Support FrIndexArray and FrMapArray #258

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Conversation

DavePearce
Copy link
Collaborator

This adds support for FrIndexArray and FrMapArray, along with various FrPool implementations which are optimised for various cases. Perhaps surprisingly, whilst memory usage has been improved considerably, it still lags behind the original Rust corset tool in many cases.

@DavePearce DavePearce linked an issue Jul 25, 2024 that may be closed by this pull request
This adds support for these two pool types, both of which are backed by
the same 64K array of field elements.  Overall, that leads to a fairly
decent improvement in storage usage, as well as a small improvement in
execution time.
@DavePearce DavePearce force-pushed the 252-support-frmaparray branch from 368397d to 9fb2253 Compare July 25, 2024 04:23
This uses a map to pool `fr.Element` instances, long with appropriate
locks to ensure thread-safety.
@DavePearce DavePearce force-pushed the 252-support-frmaparray branch from 9fb2253 to 5e99d2b Compare July 25, 2024 04:24
@DavePearce DavePearce merged commit 6eb2de3 into main Jul 25, 2024
2 checks passed
@DavePearce DavePearce deleted the 252-support-frmaparray branch July 25, 2024 04:36
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.

Support FrMapArray
1 participant