From 92e0f3368cf7dd61ca9157027782c55958ba1b9e Mon Sep 17 00:00:00 2001 From: Franklin Delehelle Date: Thu, 4 Jan 2024 14:41:59 +0100 Subject: [PATCH] perf: ugly ROM hack --- .../consensys/linea/zktracer/module/rom/Rom.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arithmetization/src/main/java/net/consensys/linea/zktracer/module/rom/Rom.java b/arithmetization/src/main/java/net/consensys/linea/zktracer/module/rom/Rom.java index 524fb5e370..8c94a2eb5a 100644 --- a/arithmetization/src/main/java/net/consensys/linea/zktracer/module/rom/Rom.java +++ b/arithmetization/src/main/java/net/consensys/linea/zktracer/module/rom/Rom.java @@ -66,18 +66,7 @@ public int lineCount() { } public int chunkRowSize(RomChunk chunk) { - int s = 32; - for (int pc = 0; pc < chunk.byteCode().size(); pc++) { - final int opCode = 0xff & chunk.byteCode().get(pc); - if (opCode >= 0x60 && opCode <= 0x7f) { - final int pushParam = opCode - 0x60 + 1; - s += pushParam; - pc += pushParam; - } else { - s += 2; - } - } - return s; + return chunk.byteCode().size(); } private void traceChunk(RomChunk chunk, int cfi, int cfiInfty, Trace trace) {