]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/profiling: improve pcap reading performance
authorVictor Julien <vjulien@oisf.net>
Sat, 16 Dec 2023 15:45:00 +0000 (16:45 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 8 Jan 2024 19:23:28 +0000 (20:23 +0100)
commitbcb2b50cfc34430e0e91dea781c90d2259ef8f0d
treee56122ffc44bdd6ec5230150b615a77b65560656
parent8d3de85edda97b0c585253803da3faeccc257942
detect/profiling: improve pcap reading performance

When reading a pcap, packet time can move much faster than wall
clock time. This would trigger many more profile syncs than before.

As the sync is using a lock to synchronize with other threads, this
is an expensive operation.

Bug: #6619.

Fixes: b591813b8690 ("profiling/rules: reduce sync logic scope")
src/detect.c