-
Notifications
You must be signed in to change notification settings - Fork 39
Feature/optimise step selector builder #154
Feature/optimise step selector builder #154
Conversation
…explorations#111) Resolve privacy-scaling-explorations#85 - [x] TraceWitness - [x] Assignments --------- Co-authored-by: Leo Lara <leolara@users.noreply.github.com>
Resolves privacy-scaling-explorations#129. @leolara @qwang98 Ready for review. Automatic instance is now enabled in plaf codebase,(Dhole/polyexen#3) and this PR would apply that change.
…-explorations#146) Now Expr arithmetic doesn't require LHS to be Expr but can be ToExpr as well. Thanks to Sandro for pointing out this error.
…before: StepSelector
… the number of cols
4 steps require 3 columns, because 00 is not used. Please add a test with 4 steps that checks that 3 columns are used. |
…e have one value in use to indicate no step
Rusfmt problems |
I think you test the expresions and the assignments, the expressions can be converted to a string with |
…-explorations#146) Now Expr arithmetic doesn't require LHS to be Expr but can be ToExpr as well. Thanks to Sandro for pointing out this error.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #154 +/- ##
==========================================
+ Coverage 46.84% 48.02% +1.17%
==========================================
Files 21 21
Lines 5364 5483 +119
==========================================
+ Hits 2513 2633 +120
+ Misses 2851 2850 -1
☔ View full report in Codecov by Sentry. |
@leolara need approval here, the previous run failed on the Clippy so I committed a fix for that |
Optimisation of Step Selector for Log2(n) Columns
Description
Goal: is to optimise the Step Selector Builder to have Log2(n) Columns per n Step Types instead of one Column per each Step Type.
Current Implementation: implemented a new type of Selector and implemented the build function for it
Explanation: If we use binary representation for the step types instead of using the actual columns we will get an optimised version for the Selector Builder since we can get the total of columns from the following expression
We need take into consideration that we also need to save one binary value for the case when there is no step type, because of this we do the math with (n_step_types + 1).
What is missing