Re: Smart strings & memory allocation

From: Date: Wed, 18 Jun 2003 13:41:33 +0000
Subject: Re: Smart strings & memory allocation
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-2365@lists.php.net to get a copy of this message
PL>> How about including a malloc() implementation of your own? Doug PL>> Lea's dmalloc comes to mind. That way, you should be able to get a PL>> much higher level of control over how it allocates small blocks PL>> (which are indeed very common in almost all computer programs). In fact, that was initial though behind all my tests - to see how many small blocks PHP allocates, what are these small blocks and how well they are cached. If anybody is interested in working or it or has suggestions about that - I can share my thoughts. BTW, I don't exactly think dmalloc is the best way for what we are going to do, since AFAIK it's general-purpose allocator, and what we need is more to the direction of fixed-size block allocator. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109

« previous php.internals (#2365) next »