Re: Smart strings & memory allocation
| From: | Per Lundberg | Date: | Wed, 18 Jun 2003 14:26:03 +0000 |
| Subject: | Re: Smart strings & memory allocation | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2378@lists.php.net to get a copy of this message | ||
On Wed, 2003-06-18 at 16:19, Sascha Schumann wrote:
> > 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?
> Free lists already exist.
That's good, but that's only one step. Some system mallocs are very
inefficient on small blocks so it might be very worthwhile to grab a
"chunk" of, say, 64k, instead of many small mallocs of 20 bytes.
How do you propose that we should handle those systems, where the libc
malloc is inefficient?
--
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