Re: GiST memory allocation - Mailing list pgsql-hackers

From Neil Conway
Subject Re: GiST memory allocation
Date
Msg-id 41877393.6010708@samurai.com
Whole thread Raw
In response to Re: GiST memory allocation  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> I don't believe memory context creation is very much worse than a malloc
> (and it's certainly not that much worse than a context reset).
> If you can't buy back the time spent by avoiding some retail pfrees, then
> this whole exercise becomes very questionable anyway.

Hmm, okay -- I'll just create and destroy the contexts for each API call 
then.

Thanks for the advice.

-Neil


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: GiST memory allocation
Next
From: Dennis Bjorklund
Date:
Subject: Re: charset/collation in values