-
Notifications
You must be signed in to change notification settings - Fork 103
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
Adding new range check32 table implementation #2732
base: master
Are you sure you want to change the base?
Conversation
…arithmetic results
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## sai/fixing-lookuprs-bug #2732 +/- ##
===========================================================
- Coverage 72.50% 72.49% -0.02%
===========================================================
Files 247 247
Lines 57706 57734 +28
===========================================================
+ Hits 41842 41852 +10
- Misses 15864 15882 +18 ☔ View full report in Codecov by Sentry. |
@@ -275,4 +289,13 @@ impl<F: Field> FixedLookupTables<F> for LookupTable<F> { | |||
.collect(), | |||
} | |||
} | |||
|
|||
fn table_range_check_32() -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You really want to keep 2^32 * 4 bytes in memory? This is madness!
@@ -554,6 +554,24 @@ pub trait InterpreterEnv { | |||
self.lookup_2bits(value); | |||
} | |||
|
|||
// Adds a lookup to the ByteLookup table for each byte of a 32-bit value | |||
fn lookup_32bits(&mut self, value: &Self::Variable) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are you trying to achieve here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- yeah, why is it not enough to have two 16bit tables?...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too much memory used when checking entry
Might be useful to have a look at #2395 |
No description provided.