From: Alaric Snell-Pym Date: May 15 2009 9:10am Subject: Re: MySQL Reengineering Project List-Archive: http://lists.mysql.com/internals/36701 Message-Id: <779ED185-3528-4C2E-9838-B1B9828DD65C@geniedb.com> MIME-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 15 May 2009, at 6:09 am, Kristian Nielsen wrote: > Alaric Snell-Pym 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. ABS -- Alaric Snell-Pym ACGI MIAP MBCS Chief software engineer, GenieDB alaric@stripped