Re: About optimization
| From: | Derick Rethans | Date: | Thu, 14 Jan 2010 00:30:11 +0000 |
| Subject: | Re: About optimization | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46722@lists.php.net to get a copy of this message | ||
On Wed, 13 Jan 2010, Stanislav Malyshev wrote:
> > Says 93.2482 for me. Should be even less since string generated by
>
> On 64-bit I get about 170 bytes for 5.2, don't have 5.3 build handy on 64-bit.
On 64bit (debug builds):
derick@kossu:~$ pe 5.3dev
derick@kossu:~$ php
<?php
$m = memory_get_usage();
$a = explode(',', str_repeat(',', 100000));
print (memory_get_usage() - $m)/100000;
?>
378.54448
derick@kossu:~$ pe 5.2dev
derick@kossu:~$ php
<?php
$m = memory_get_usage();
$a = explode(',', str_repeat(',', 100000));
print (memory_get_usage() - $m)/100000;
?>
370.57952
with kind regards,
Derick
--
http://derickrethans.nl | http://xdebug.org
twitter: @derickr