21 Apr
2007
21 Apr
'07
12:02 p.m.
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... Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog