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

Chuck Hagenbuch chuck at horde.org
Mon Jan 27 09:49:31 PST 2003


Quoting Jan Schneider <jan at horde.org>:

> This might sound like a academic discussion as 25% or even 100%
> performance increase isn't _that_ much, but I discovered this when I found 
> out that array_key_exists() was called about 1900 times while opening
> imp/folders.php and cosumed about 20% of the scripts time.

Perhaps the real win would be to track down some of those array_key_exists()
calls and figure out if we can, say, half the number of calls? That'd be a
big gain whether it was array_key_exists() or isset().

Jan, thanks again for this data; if you find any other huge time-consumers
like this, definitely let us know.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
must ... find ... acorns ... *thud*


More information about the dev mailing list