summaryrefslogtreecommitdiff
path: root/plugins/warp/benches/function.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-07-16 14:41:31 -0400
committerMason Reed <mason@vector35.com>2025-07-17 06:20:20 -0400
commit2f947fd6971e284ebc0f38219c1687afa15d73b0 (patch)
tree3326fda2f5d2105fa53609e51705b1a30bed824f /plugins/warp/benches/function.rs
parent302b3295e6db60c1ee5a076d8f57ebfd5e1eb30a (diff)
[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!
Diffstat (limited to 'plugins/warp/benches/function.rs')
-rw-r--r--plugins/warp/benches/function.rs4
1 files changed, 2 insertions, 2 deletions
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::<Vec<_>>()
})