It doesn't look like such a good idea to me. There are lots of things in 
PHP where you can get 10% speedup by copy&pasting stuff from one function 
to another. It makes the code completely unmaintainable and in real life 
situation usually, if at all, gives a negligible speedup. I've played 
around a lot with this kind of stuff and it is only worth it IMO if you can 
really prove it makes a difference. Also, note that results may very quite 
considerably from platform to platform.
BTW, if you can prove it really makes a difference then the solution might 
be inlining those functions into hash_copy() and not going in the direction 
of unmaintainable code. But that is a big "if" anyway as I mentioned earlier.

Andi

At 05:29 PM 11/25/2001 +0100, Thies C. Arntzen wrote:

>     hi -
>
>     this litte patch makes zend_hash_copy around 10% faster by
>     taking a "shortcut"
>
>     zeev, andi -
>     is this "commitable" or do you have any objections?
>
>     tc
>
>
>
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to