JaffarPlus
High-performance best-first search optimizer for tool-assisted speedruns
Loading...
Searching...
No Matches
jaffarPlus::HashDb::paddedCounter_t Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ value

size_t jaffarPlus::HashDb::paddedCounter_t::value = 0

The counter's accumulated value.

Definition at line 286 of file hashDb.hpp.


The documentation for this struct was generated from the following file: