On Mon, May 12, 2014 at 11:36:28AM -0300, Amadeus Folego wrote:
> Maybe we should include a benchmark script so that we can test if a
> patch has a regression on performance?
Yes, it has been discussed before. If anyone feels up to the task
to make an sbase-test repo, that would be nice.
Maybe we should include a benchmark script so that we can test if a
patch has a regression on performance?
On Mon, 12 May 2014 12:57:57 +0200
Hiltjo Posthuma wrote:
> (Re)compiling the regex for each line doesn't make sense (imho) and
> slows it down alot.
Damn, how could I miss that? That's definitely true!
Thanks for investigating this, I'll take better care next time.
Cheers
FRIGN
--
FRIGN
On Mon, May 12, 2014 at 12:57:57PM +0200, Hiltjo Posthuma wrote:
> On Mon, May 12, 2014 at 12:34 AM, FRIGN wrote:
> > 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 af
On Mon, May 12, 2014 at 12:34 AM, FRIGN wrote:
> 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
On Mon, May 12, 2014 at 12:36:12AM +0100, Dimitris Papastamos wrote:
> On Mon, May 12, 2014 at 12:34:36AM +0200, FRIGN wrote:
> > 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 regf
On Mon, May 12, 2014 at 12:34:36AM +0200, FRIGN wrote:
> 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
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 m