djg 4731a6e5d5
std: hash_map: optimize isFree/isTombstone (#10562)
- Add an `Metadata.isFree` helper method.
- Implement `Metadata.isTombstone` and `Metadata.isFree` with `@bitCast` then comparing to a constant. I assume `@bitCast`-then-compare is faster than the old method because it only involves one comparison, and doesn't require bitmasking.
- Summary of benchmarked changes (`gotta-go-fast`, run locally, compared to master):
  - 3/4 of the hash map benchmarks used ~10% fewer cycles
  - The last one (project Euler) shows 4% fewer cycles.
2022-01-10 23:54:45 -05:00
..
2021-12-21 01:41:51 +01:00
2022-01-07 00:06:06 -05:00
2021-11-15 04:47:57 +01:00
2021-12-21 17:13:52 -08:00
2022-01-07 00:06:06 -05:00
2021-12-02 12:35:17 -08:00
2021-10-27 16:07:48 -04:00
2022-01-07 00:06:06 -05:00
2022-01-07 00:06:06 -05:00