21 Apr
2007
21 Apr
'07
2:27 p.m.
On April 21, 2007 6:02:41 PM +0200 Alan DeKok <aland@deployingradius.com> wrote:
Alan DeKok wrote:
This is one place where garbage collection would make the code MUCH easier.
Or, memory pools. Start off with a 1K or 2K pool for a REQUEST*, and allocate any REQUEST specific things from there, including VALUE_PAIRs. It would mean that the pool code would have to be in libradius, and that the pairfoo() interface would be updated to take a memory pool pointer.
It would be just repetitive edits to get that done, though. I think the pool code should be pretty simple. Let's see...
I would try tcmalloc (Linux) or mtmalloc (Solaris) first. -frank