note 51781 added to function.array-key-exists
| From: | daveunderscorebachtelatyahoodotcom at osu1 dot php dot net | Date: | Mon, 11 Apr 2005 06:51:54 +0000 |
| Subject: | note 51781 added to function.array-key-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87809@lists.php.net to get a copy of this message | ||
After banging my head against a desk for the last few days trying to squeeze out some efficiency
improvements, I began doing benchmarks for execution time using the microtime() function.
using:
array_key_exists()
34.322115
isset()
0.969917
I measure a 34x increase in performance (yes, thats 34 times!) in my application just by
substituting one function for the other. Hard to believe!
----
Manual Page -- http://www.php.net/manual/en/function.array-key-exists.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51781
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51781&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51781&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51781&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51781&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51781&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51781&report=yes
Search -- http://master.php.net/manage/user-notes.php