mirror of https://github.com/OISF/suricata
profiling: set sample rate to power of 2
For the rules profiling, we really want to limit the performance impact to the maximum. So let's use an hash size that is a power of 2. This will allow to not use the modulo operation that is costly and simply use a single binary operator. This code is only active for rules profiling so we are backward compatible.pull/8879/head
parent
df88ef0249
commit
ea95e85755
Loading…
Reference in New Issue