Hello,
previously, we allocated one regex_t for each pattern found.
This gets pretty nasty once the tree of patterns grows.
Reusing one regex_t and regfreeing it after each use inside grep()
implies just one simultaneous element in memory and a drastic decrease
in memory-consumption.
Please let me know what you think!
Cheers
FRIGN
--
FRIGN <dev_AT_frign.de>
Received on Mon May 12 2014 - 00:34:36 CEST