Expand description
Define Caching behaviour for TreeMorph This should help out with repetetive and expensive tree operations as well as long chains of rules on duplicate subtrees
Structs§
- Cached
Hash Key - Hashing strategy that delegates to
CacheHashable::get_cached_hash, allowing types with internally cached hashes to avoid rehashing entire subtrees. - Hash
MapCache - RewriteCache implemented with a HashMap, generic over a
CacheKeyhashing strategy. - NoCache
- Disable Caching.
- StdHash
Key - Hashing strategy that delegates to the standard
Hashtrait.
Enums§
- Cache
Result - Return type for RewriteCache Due to the nature of Rewriting, there may be repeated subtrees where no rule can be applied. In that case, we can compute it once and store it in cache stating no rules applicable.
Traits§
- Cache
Hashable - Types with an internally cached hash value.
- Cache
Key - Abstracts how a cache computes hash keys and invalidates nodes.
- Rewrite
Cache - Caching for Treemorph.
Type Aliases§
- Cached
Hash MapCache - Convenience alias for a
HashMapCacheusingCachedHashKey.