arnaucube
arnaucube/hyperplonkPublic Self-hosted repository
remove unncessary timer
Charles Chen chancharles92@gmail.com
Fri, 16 Dec 2022 14:01:32 -0500
commit

44833a0c01952555f8039e48c6c33e165828d4c3

parent

c48c1b97a574852b68e4fd803db40a01c57a3a9d

1 files changed, 0 insertions(+), 6 deletions(-)

jump to
M arithmetic/src/virtual_polynomial.rs → arithmetic/src/virtual_polynomial.rs

@@ -364,8 +364,6 @@ /// eq(x,y) = \prod_i=1^num_var (x_i * y_i + (1-x_i)*(1-y_i))

/// over r, which is /// eq(x,y) = \prod_i=1^num_var (x_i * r_i + (1-x_i)*(1-r_i)) pub fn build_eq_x_r_vec<F: PrimeField>(r: &[F]) -> Result<Vec<F>, ArithErrors> { - let start = start_timer!(|| format!("build eq_x_r of size {}", r.len())); - // we build eq(x,r) from its evaluations // we want to evaluate eq(x,r) over x \in {0, 1}^num_vars // for example, with num_vars = 4, x is a binary vector of 4, then

@@ -380,7 +378,6 @@

let mut eval = Vec::new(); build_eq_x_r_helper(r, &mut eval)?; - end_timer!(start); Ok(eval) }

@@ -512,8 +509,6 @@ // eq(x,y) = \prod_i=1^num_var (x_i * y_i + (1-x_i)*(1-y_i))

// over r, which is // eq(x,y) = \prod_i=1^num_var (x_i * r_i + (1-x_i)*(1-r_i)) fn build_eq_x_r_for_test<F: PrimeField>(r: &[F]) -> Arc<DenseMultilinearExtension<F>> { - let start = start_timer!(|| "zero check naive build eq_x_r"); - // we build eq(x,r) from its evaluations // we want to evaluate eq(x,r) over x \in {0, 1}^num_vars // for example, with num_vars = 4, x is a binary vector of 4, then

@@ -546,7 +541,6 @@

let mle = DenseMultilinearExtension::from_evaluations_vec(num_var, eval); let res = Arc::new(mle); - end_timer!(start); res } }