Structsยง
- Extra per-location state.
- Stack
Cache ๐A very small cache of searches of a borrow stack, mappingItem
s to their position in said stack.
Constantsยง
- CACHE_
LEN ๐Exactly what cache size we should use is a difficult trade-off. There will always be some workload which has aBorTag
working set which exceeds the size of the cache, and ends up falling back to linear searches of the borrow stack very often. The cost of making this value too large is that the loop inStack::insert
which ensures the entries in the cache stay correct after an insert becomes expensive.