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

fix: bump lookup table constant and improve logging #11095

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

ledwards2225
Copy link
Contributor

@ledwards2225 ledwards2225 commented Jan 7, 2025

Remove the MAX_LOOKUP_TABLES_SIZE constant (for now) to avoid pain for developers. Added TODO to reconsider this in the future to continue to benefit from the memory gains afforded by MAX_LOOKUP_TABLES_SIZE

@ledwards2225 ledwards2225 marked this pull request as ready for review January 7, 2025 21:54
@ledwards2225 ledwards2225 self-assigned this Jan 7, 2025
Copy link
Contributor

@lucasxia01 lucasxia01 left a comment

Choose a reason for hiding this comment

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

I assume this fixes the problem, thanks!

@@ -23,7 +23,13 @@ void construct_lookup_table_polynomials(const RefArray<typename Flavor::Polynomi
// ignored, as used for regular constraints and padding to the next power of 2.
// TODO(https://github.com/AztecProtocol/barretenberg/issues/1033): construct tables and counts at top of trace
const size_t tables_size = circuit.get_tables_size();
ASSERT(tables_size <= MAX_LOOKUP_TABLES_SIZE); // if false, may need to increase constant
Copy link
Contributor

Choose a reason for hiding this comment

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

was this assert previously not being triggered?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In debug it would but otherwise I think not. Just rearranged so that theres some warning in release

@ledwards2225 ledwards2225 merged commit 7e9e268 into master Jan 8, 2025
23 checks passed
@ledwards2225 ledwards2225 deleted the lde/bump_max_tables_size branch January 8, 2025 18: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.

3 participants