-
Notifications
You must be signed in to change notification settings - Fork 227
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
chore: SliceRemove minor optimization #3652
Conversation
… heavy cleanup still needed
…y modify the predicate index for the non-dummy val
…et element type size array correct
Co-authored-by: Tom French <[email protected]>
Co-authored-by: Tom French <[email protected]>
Co-authored-by: Tom French <[email protected]>
Co-authored-by: Tom French <[email protected]>
# Description ## Problem\* Resolves #2462 ## Summary\* This PR simply builds upon #3617 by including some tests that use a dynamic index on SliceInsert and SliceRemove. ## Additional Context ## Documentation\* Check one: - [ ] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[Exceptional Case]** Documentation to be submitted in a separate PR. # PR Checklist\* - [X] I have tested the changes locally. - [X] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
Changes to circuit sizes
🧾 Summary (10% most significant diffs)
Full diff report 👇
|
Can we remove this write operation entirely? We've already initialised the array so if we don't care about the value written here we can just leave it as is, right? |
I switched to initializing without the original slice value to avoid having to clone the |
@TomAFrench It looks to have reduced the ACIR opcodes for |
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.
Nice. LGTM
Description
Problem*
Resolves this discussion #3617 (comment)
Summary*
Reference the discussion and the PR it is under for more context.
Additional Context
Documentation*
Check one:
PR Checklist*
cargo fmt
on default settings.