> fairly certain that doing 100 000 allocations of 20 bytes is a whole lot > 1) slower and 2) more memory consuming than allocating 2 megs at once.
Of course. That's not the point though. The point is whether the difference matters in the global picture. You can optimize almost everything; but if the problem accounts only for a minimal spectrum of the whole execution time, you are simply wasting your time with micro-optimizations. - Sascha -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php