note 55928 deleted from function.array-key-exists by victor
| From: | victor@php.net | Date: | Thu, 18 Aug 2005 06:50:27 +0000 |
| Subject: | note 55928 deleted from function.array-key-exists by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93822@lists.php.net to get a copy of this message | ||
Note Submitter: Noone at nowhere dot org
----
Wow. Substituting isset() makes a huge difference in performace for our application. I am too lazy
to put together an actual benchmark but it has to be a near a 10 fold decrease in execution time!
The only thing that I can gather is that Tim's benchmark does not acurately reflect execution
time of of the individual functions, only of the program in its entirety (load up, execution, and
termination). It also possible (as foxyshadis's note noted) that the Tim's above example
might just be hitting cache for $a[333] repetitevly. Maybe this just an optimization of php in the
version he is using? If the example of Tim hit random value for the subscript of $a, it might yeild
more accurate performance rating.