William Correia opened merge request !21: Don't eagerly box values in insert at William Correia / rs-collections

William Correia
2026-03-25T23:04:14Z

Insert called Box::new() on the key before we knew if we were inserting into the map. In the case we already had the element this created a heap allocation we immediately threw away. Now Box only gets made in the else case just before usage.