Re: Re: 10% speedup patch in zend_hash_copy
| From: | Andi Gutmans | Date: | Sun, 25 Nov 2001 21:03:39 +0000 |
| Subject: | Re: Re: 10% speedup patch in zend_hash_copy | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71605@lists.php.net to get a copy of this message | ||
very = vary. I need to stop sending stuff off without proof reading :)
Andi
At 11:01 PM 11/25/2001 +0200, Andi Gutmans wrote:
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:-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.nethi -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