MCPcopy Create free account
hub / github.com/argumentcomputer/ix / try_get_expr

Method try_get_expr

crates/kernel/src/env.rs:95–97  ·  view source on GitHub ↗
(&self, hash: &blake3::Hash)

Source from the content-addressed store, hash-verified

93/// uniqueness per shallow structural key within that environment:
94/// `ptr(a) == ptr(b)` iff `key(a) == key(b)` for interned values.
95///
96/// Also owns reusable scratch buffers used by `subst`, `simul_subst`, and
97/// `lift` to memoize content-addressed sub-traversals within a single
98/// call. Allocating these as `FxHashMap::default()` per call shows up in
99/// profiles for big mathlib blocks where beta/zeta reductions fire
100/// millions of times; threading the scratch through the `&mut InternTable`

Callers 1

timed_intern_or_buildFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected