]> git.ipfire.org Git - thirdparty/suricata.git/commit
Split AC-Tile MPM context into Search and Initialization structures. 714/head
authorKen Steele <ken@tilera.com>
Wed, 13 Nov 2013 19:16:21 +0000 (14:16 -0500)
committerVictor Julien <victor@inliniac.net>
Wed, 11 Dec 2013 10:55:12 +0000 (11:55 +0100)
commit3870def6016b7d24dec8b37557229f49a9bf427c
treed455717b28ab2d3d95ed58170694aa4e993224b0
parentb61552482c0b813386c701559a9711bfe3a5f406
Split AC-Tile MPM context into Search and Initialization structures.

Some of the fields in the SCACTileCtx struct are only used to create the MPM,
but are not needed to search the MPM. Create a new structure to contain just
the data needed by AC Search. After creating the MPM, copy the data into the
new structure and then free the memory only needed during initialization.

This reduces the size of the AC-Tile MPM context from 1360 bytes down to 296
bytes.
src/util-mpm-ac-tile-small.c
src/util-mpm-ac-tile.c
src/util-mpm-ac-tile.h