ibraheemdev / papaya

A fast and ergonomic concurrent hash-table for read-heavy workloads.
MIT License
343 stars 5 forks source link

Avoid guard check in pinned map operations #11

Closed ibraheemdev closed 1 month ago

ibraheemdev commented 1 month ago

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.