On 15 May 2009, at 6:09 am, Kristian Nielsen wrote:
> Alaric Snell-Pym <alaric@stripped> writes:
>> Avoiding malloc is a noble goal indeed!
>> But for request-based systems, though, would it not be a good idea to
>> have an Apache-style request memory pool system, which could allocate
>> objects less than a certain size limit sequentially from pages of a
>> suitably tuned size, thus amortizing mallocs behind an abstraction
>> layer rather than having lots of little tricks here and there?
> What you describe here sounds very much like the memroot
> functionality that is
> widely used in the server.
I saw a few mentions of memroot in passing while exploring around, but
know nothing of its internals - perhaps making it more widely used
would be a good goal for the reengineering project!
> - Kristian.
Alaric Snell-Pym ACGI MIAP MBCS
Chief software engineer, GenieDB