Re: How do YOU set default function/method params?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mert Oztekin wrote:
> IMO, array_merge() is easy to use, however it suppose to use more cpu than other options. If you are a performance freak, i suggest you to not choose array_merge() solution. (also you execute date() and md5() functions even if you wont need to use them)
> 
> In the other way, I think first option (with if() ones) seems more readable than other ones.
> 

>From a performance view, check out these numbers

http://www.cmsws.com/examples/php/functions/speedtests/array_merge.php

To see the source:
http://www.cmsws.com/examples/php/functions/speedtests/array_merge.phps

What a surprising difference in numbers!!!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux