Re: Smart strings & memory allocation
| From: | Per Lundberg | Date: | Wed, 18 Jun 2003 14:18:40 +0000 |
| Subject: | Re: Smart strings & memory allocation | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2373@lists.php.net to get a copy of this message | ||
On Wed, 2003-06-18 at 16:11, Stanislav Malyshev wrote:
> PL>> Fixed-size? Do you mean an allocator that is optimized for
> PL>> allocation of blocks of a certain size, or an allocator that can only
> PL>> allocate blocks of a certain size?
> The former, which can be the latter too, since we can always fall back to
> malloc.
This might actually be a very good idea, since it can likely improve
performance a lot by having a pool of zval-sized blocks (I have no idea
of how big they are). Have you thought about how to implement it in a
good way?
--
Best regards,
Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc