]> git.ipfire.org Git - people/ms/suricata.git/commit
detect/threshold: Improve threshold.config perf
authorJeff Lucovsky <jeff@lucovsky.org>
Mon, 29 Mar 2021 12:30:59 +0000 (08:30 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 8 Apr 2021 09:08:32 +0000 (11:08 +0200)
commit02ceac8b8d4473de5f373a4785a1c143778b06e1
tree68ac2c56f909a52bbfb499873b43765dbd86d298
parente873632a2811be4cd370336d43fcc5619bcd28e2
detect/threshold: Improve threshold.config perf

This commit improves performance when parsing threshold.config by
removing a loop-invariant to create a one-time object with the parsed
address(es).

Then, as needed, copies of this object are made as the suppression
rule(s) are processed.
src/util-threshold-config.c