[dev] [sbase] [PATCH] Make grep more memory-efficient

From: FRIGN <dev_AT_frign.de>
Date: Mon, 12 May 2014 00:34:36 +0200

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

This archive was generated by hypermail 2.3.0 : Mon May 12 2014 - 00:36:06 CEST