Re: Smart strings & memory allocation
| From: | Sascha Schumann | Date: | Wed, 18 Jun 2003 14:56:41 +0000 |
| Subject: | Re: Smart strings & memory allocation | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2381@lists.php.net to get a copy of this message | ||
> 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 know that this is a significant problem?
Quantify first, optimize later. This applies to the whole
thread which is quite undirected regarding solving a specific
problem.
- Sascha