Collections: One Lookup, Three Layouts Give three maps the same key This benchmark canister puts the same hundred thousand entries in three maps. Tables holds a native Nyxus map and a Minima frozen hash descriptor. Its baseline child holds the Hylix map. Every stored key is even. We'll look up fifteen thousand eight hundred and seventy-four, then the odd key that follows it. The first key has a value. The second is absent. Follow the two ordered trees Nyxus compares the key with entries in native B-tree nodes. Each comparison can settle the search or tell it which child to follow. The even key finds its value in the tree. The odd key runs out of places to look. Hylix also searches ordered keys. Its child links name blocks in its virtual stable image. It reads their bytes through the working set. The even key finds a value to decode. The odd key comes back empty. Probe Minima's buckets The frozen hash map hashes the key to choose a primary bucket. It reads the whole four-kibibyte bucket into borrowed workspace. This bucket holds our even key. The map decodes the matching value and returns it. The absent key fails the exact comparison in its primary bucket. The map tries a backup bucket, using the same workspace. The second check also misses, so the lookup returns none. Change the value Give the Nyxus map a replacement for the even key. The native map writes the new Rust value into the existing entry. Hylix can edit through a guard. It decodes the value for this write frame. When the guard drops, it encodes the replacement back into the original slot. The frame then flushes the changed bytes. Replace a frozen index Look up the same key in the benchmark's frozen map. It still returns the original value. The benchmark builds this index once from the starting entries. To revise a frozen map, build a new index from the full entry list with that one value changed. Once the build succeeds, the owner replaces the old index. The next lookup returns the revised value. The native tree and the retained descriptors sit in main memory. The Hylix nodes and the frozen buckets sit in stable memory. What happens to the retained heap when the canister installs new code?