Closed cuviper closed 5 months ago
This mutation can be done in-place with retain on both the IndexMap and its inner Cfg(Vec) values. In addition to being simpler, it should be a little faster since it doesn't need new allocations nor re-hashing of retained items.
retain
IndexMap
Cfg(Vec)
This mutation can be done in-place with
retain
on both theIndexMap
and its innerCfg(Vec)
values. In addition to being simpler, it should be a little faster since it doesn't need new allocations nor re-hashing of retained items.