From: Kristian Nielsen Date: May 15 2009 5:09am Subject: Re: MySQL Reengineering Project List-Archive: http://lists.mysql.com/internals/36699 Message-Id: <877i0jgdeu.fsf@knielsen-hq.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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. - Kristian.