]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: initialization optimization
authorVictor Julien <vjulien@oisf.net>
Thu, 31 Mar 2022 16:00:57 +0000 (18:00 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 4 Apr 2022 15:15:33 +0000 (17:15 +0200)
commit3352c0bee419818f138be5837729f63a9b31bb03
tree8180f6575c0e84fd2f986a68b4bb3bd673b78e1f
parentb804a84c939db8d31d8eedca481c2c74943db4f2
detect: initialization optimization

A lot of time was spent in `SigMatchListSMBelongsTo` for the `mpm_sm`.

Optimize this by keeping the value at hand during Signature parsing and
detection engine setup.
src/detect-engine-analyzer.c
src/detect-engine-build.c
src/detect-engine-mpm.c
src/detect-engine.c
src/detect-parse.c
src/detect.h