[dev] Re: [cvs] commit: horde/lib String.php

Jan Schneider jan at horde.org
Sun Jan 26 22:04:21 PST 2003


Zitat von Michael M Slusarz <slusarz at bigworm.colorado.edu>:

> slusarz     2003/01/26 12:51:42 PST
> 
>   Modified files:
>     lib                  String.php
>   Log:
>   isset() -> array_key_exists().

Please revert this. 
I recognized during a performance audit that this function was a real
performance hit. Chuck and me also tested the performance of
array_key_exist() vs. isset() and detected that isset() is around twice as
fast. Unless there is really a reason to use array_key_exists(), we should
in the future use isset() again.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list