|
Blender V4.3
|
#include <BLI_probing_strategies.hh>
Public Member Functions | |
| QuadraticProbingStrategy (const uint64_t hash) | |
| void | next () |
| uint64_t | get () const |
| int64_t | linear_steps () const |
A slightly adapted quadratic probing strategy. The distance to the original slot increases quadratically. This method also leads to clustering. Another disadvantage is that not all bits of the original hash are used.
The distance i * i is not used, because it does not guarantee, that every slot is hit. Instead (i * i + i) / 2 is used, which has this desired property.
In the first few steps, this strategy can have good cache performance. It largely depends on how many keys fit into a cache line in the hash table.
Definition at line 91 of file BLI_probing_strategies.hh.
|
inline |
Definition at line 98 of file BLI_probing_strategies.hh.
|
inline |
Definition at line 109 of file BLI_probing_strategies.hh.
|
inline |
Definition at line 114 of file BLI_probing_strategies.hh.
|
inline |
Definition at line 103 of file BLI_probing_strategies.hh.