Re: Idle Rambling : Strings, Allocation Granularity and Efficiency ...

From: Date: Thu, 08 Jun 2000 07:57:04 +0000
Subject: Re: Idle Rambling : Strings, Allocation Granularity and Efficiency ...
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-20537@lists.php.net to get a copy of this message
AG>> One thing which is a possibility is always to always allocate strings in AG>> blocks of n (where n could be 4 or 8 or something like that). I think it I think malloc (at least GNU one) automatically aligns allocated blocks to 8 (YMMV). That basically means request for 59, 61 and 63 bytes are the same. So we should have this anyway. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#20537) next »