From 8bf06ed8723c50e466b48e05450bf157d804d07e Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Wed, 4 May 2022 11:53:07 +0200 Subject: [PATCH] add remark re. parser benchmarks --- compiler/parser/benches/leo_ast.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/parser/benches/leo_ast.rs b/compiler/parser/benches/leo_ast.rs index 6e37f25923..140e46a6da 100644 --- a/compiler/parser/benches/leo_ast.rs +++ b/compiler/parser/benches/leo_ast.rs @@ -35,6 +35,8 @@ macro_rules! bench { concat!("./", $file_name, ".leo"), include_str!(concat!("./", $file_name, ".leo"),), ); + // TODO(Centril): This benchmark seems like it actually does nothing + // but take a reference to `&ast`, which should be optimized out? c.bench_function(concat!("Ast::", $file_name), |b| b.iter(|| &ast)); } };