MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / args_match

Function args_match

compiler/src/modules/vm/cache.rs:199–203  ·  view source on GitHub ↗
(e: &TplEntry, args: &[Val], h: u64, heap: &super::types::HeapPool)

Source from the content-addressed store, hash-verified

197// Template memoization for pure functions.
198
199fn args_match(e: &TplEntry, args: &[Val], h: u64, heap: &super::types::HeapPool) -> bool {
200 e.hash == h
201 && e.args.len() == args.len()
202 && e.args.iter().zip(args).all(|(a, b)| eq_vals_with_heap(*a, *b, heap))
203}
204
205const TPL_THRESH: u32 = 2;
206

Callers 2

lookupMethod · 0.85
recordMethod · 0.85

Calls 3

eq_vals_with_heapFunction · 0.85
lenMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected