mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 02:54:25 +00:00
`Interned::insert` looked the key up and then inserted it, two probes for a new key. It now goes through `HashMap::entry`, one probe either way, and counts that probe itself, so the tests count what the index does. `author()` built a `String` key on every call. It now looks the author up borrowed first, and allocates only for a new one. Review on #1467.