mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-12 09:01:28 +01:00
Improve performance of recursive (#163)
* Improve performance of recursive * Fix the test after rebase * Fix CI/CD warnings * Update benchmark to work with new interface of RecursiveSNARK * Fix example to make sure step 1 is correct * refactor: Removes unneeded pass-by value in verification - Update function arguments to use borrowing instead of passing ownership * Resolve the conflict with upstream branch * refactor: Avoid extra input cloning in RecursiveSNARK::new * Update criterion to 0.5.1 to prevent the panic with its plot * Fix benchmark issue with new recursive_snark instance * Fix CI/CD warning with * refactor: Make mutation easier to observe - Utilize mutable references to Points for better memory management * chore: Downgrade clippy dependency for compatibility --------- Co-authored-by: François Garillot <francois@garillot.net>
This commit is contained in:
@@ -1067,13 +1067,13 @@ mod tests {
|
||||
{
|
||||
let a = alloc_random_point(cs.namespace(|| "a")).unwrap();
|
||||
inputize_allocted_point(&a, cs.namespace(|| "inputize a")).unwrap();
|
||||
let mut b = a.clone();
|
||||
let mut b = &mut a.clone();
|
||||
b.y = AllocatedNum::alloc(cs.namespace(|| "allocate negation of a"), || {
|
||||
Ok(G::Base::ZERO)
|
||||
})
|
||||
.unwrap();
|
||||
inputize_allocted_point(&b, cs.namespace(|| "inputize b")).unwrap();
|
||||
let e = a.add(cs.namespace(|| "add a to b"), &b).unwrap();
|
||||
inputize_allocted_point(b, cs.namespace(|| "inputize b")).unwrap();
|
||||
let e = a.add(cs.namespace(|| "add a to b"), b).unwrap();
|
||||
e
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user