Re: Idle Rambling : Strings, Allocation Granularity and Efficiency ...
| From: | Andi Gutmans | Date: | Thu, 08 Jun 2000 08:06:15 +0000 |
| Subject: | Re: Idle Rambling : Strings, Allocation Granularity and Efficiency ... | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20539@lists.php.net to get a copy of this message | ||
On Thu, 8 Jun 2000, Stanislav Malyshev wrote:
> 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.
Yes.
Andi