![]() |
JaffarPlus
High-performance best-first search optimizer for tool-assisted speedruns
|
A query/collision counter padded to a full cache line to avoid false sharing. More...
Public Attributes | |
| size_t | value = 0 |
| The counter's accumulated value. | |
A query/collision counter padded to a full cache line to avoid false sharing.
The hot-path hash check is the most frequent operation in the engine, so these statistics are accumulated per-thread (each thread touches only its own slot) instead of through a single shared atomic, whose cache line would otherwise bounce between all worker cores on every check. The padding prevents two threads' slots from landing on the same cache line.
Definition at line 284 of file hashDb.hpp.
| size_t jaffarPlus::HashDb::paddedCounter_t::value = 0 |
The counter's accumulated value.
Definition at line 286 of file hashDb.hpp.