From 9f22be11ae9e590184c3616221fc873993ca0e09 Mon Sep 17 00:00:00 2001 From: lucasxia01 Date: Fri, 16 Aug 2024 21:47:49 +0000 Subject: [PATCH] remove copying! --- .../plonk_honk_shared/composer/permutation_lib.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/barretenberg/cpp/src/barretenberg/plonk_honk_shared/composer/permutation_lib.hpp b/barretenberg/cpp/src/barretenberg/plonk_honk_shared/composer/permutation_lib.hpp index 8ae6aad831c..384a0efdb0d 100644 --- a/barretenberg/cpp/src/barretenberg/plonk_honk_shared/composer/permutation_lib.hpp +++ b/barretenberg/cpp/src/barretenberg/plonk_honk_shared/composer/permutation_lib.hpp @@ -98,7 +98,7 @@ template PermutationMapping compute_permutation_mapping( const typename Flavor::CircuitBuilder& circuit_constructor, typename Flavor::ProvingKey* proving_key, - std::vector wire_copy_cycles) + const std::vector& wire_copy_cycles) { // Initialize the table of permutations so that every element points to itself @@ -368,7 +368,7 @@ inline std::tuple, LegacyPolynomial> compute_first_and_ template void compute_permutation_argument_polynomials(const typename Flavor::CircuitBuilder& circuit, typename Flavor::ProvingKey* key, - std::vector copy_cycles) + const std::vector& copy_cycles) { constexpr bool generalized = IsUltraPlonkFlavor || IsUltraFlavor; auto mapping = compute_permutation_mapping(circuit, key, copy_cycles);