Re: About optimization

From: Date: Wed, 13 Jan 2010 23:55:07 +0000
Subject: Re: About optimization
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-46713@lists.php.net to get a copy of this message
Hi!

<?php $m = memory_get_usage(); $a = explode(',', str_repeat(',', 100000)); print (memory_get_usage() - $m)/100000;
Says 93.2482 for me. Should be even less since string generated by str_repead itself also is counted as overhead (without it it's 92.2474). Aren't you perchance using debug build? Debug build gives 196 for me. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

Thread (42 messages)

« previous php.internals (#46713) next »