From 44abcda8cae8a87eca9d3b4a0ac35e62642cfe14 Mon Sep 17 00:00:00 2001 From: Jan Ferdinand Sauer Date: Wed, 17 Apr 2024 15:18:10 +0200 Subject: [PATCH] fix(profile): correct trace randomization profile Fixes a bug in profiling (only): The master base table was seemingly trace-randomized twice, whereas the master extension table was not trace-randomized at all. --- triton-vm/src/stark.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/triton-vm/src/stark.rs b/triton-vm/src/stark.rs index 7a190ab6f..9125094e4 100644 --- a/triton-vm/src/stark.rs +++ b/triton-vm/src/stark.rs @@ -158,13 +158,13 @@ impl Stark { prof_start!(maybe_profiler, "extend", "gen"); let mut master_ext_table = master_base_table.extend(&challenges); prof_stop!(maybe_profiler, "extend"); + prof_stop!(maybe_profiler, "base tables"); + prof_start!(maybe_profiler, "ext tables"); prof_start!(maybe_profiler, "randomize trace", "gen"); master_ext_table.randomize_trace(); prof_stop!(maybe_profiler, "randomize trace"); - prof_stop!(maybe_profiler, "base tables"); - prof_start!(maybe_profiler, "ext tables"); prof_start!(maybe_profiler, "LDE", "LDE"); master_ext_table.low_degree_extend_all_columns(); prof_stop!(maybe_profiler, "LDE");