From 2f947fd6971e284ebc0f38219c1687afa15d73b0 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 16 Jul 2025 14:41:31 -0400 Subject: [WARP] Construct a minimal version of the function object when user only wants the symbol We were previously constructing the function type, comments and variables to just throw away, wasting precious cpu cycles! --- plugins/warp/benches/function.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/warp/benches/function.rs') diff --git a/plugins/warp/benches/function.rs b/plugins/warp/benches/function.rs index dc5016be..526d97c4 100644 --- a/plugins/warp/benches/function.rs +++ b/plugins/warp/benches/function.rs @@ -21,7 +21,7 @@ pub fn function_benchmark(c: &mut Criterion) { c.bench_function("signature all functions", |b| { b.iter(|| { for func in &functions { - let _ = build_function(&func, &func.lifted_il().unwrap()); + let _ = build_function(&func, &func.lifted_il().unwrap(), false); } }) }); @@ -33,7 +33,7 @@ pub fn function_benchmark(c: &mut Criterion) { .par_iter() .filter_map(|func| { let llil = func.lifted_il().ok()?; - Some(build_function(func.as_ref(), llil.as_ref())) + Some(build_function(func.as_ref(), llil.as_ref(), false)) }) .collect::>() }) -- cgit v1.3.1