Operations through HashMapRef do not need to check if the guard came from the correct collector, because that's already guaranteed by HashMap::pin. This removes a branch from all pinned operations. Some of the duplicated code could be moved to raw::HashMapRef.
Operations through
HashMapRef
do not need to check if the guard came from the correct collector, because that's already guaranteed byHashMap::pin
. This removes a branch from all pinned operations. Some of the duplicated code could be moved toraw::HashMapRef
.