note 40906 added to function.uniqid
| From: | johnkarl at nbnet dot nb dot ca | Date: | Thu, 18 Mar 2004 16:32:43 +0000 |
| Subject: | note 40906 added to function.uniqid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67026@lists.php.net to get a copy of this message | ||
A warning about uniqid!
I was at one point using uniqid in the DOMIT! xml parser to generate unique ids for each node that
was added to a DOM document.
But after running benchmarks on some different machines, I discovered that on machines with Celeron
processors, uniquid was horrendously slow. Here's one example:
Parse time for a 4k xml file:
Non-Celeron processor - ~0.2 seconds
Celeron processor - ~3.5 seconds
----
Manual Page -- http://www.php.net/manual/en/function.uniqid.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40906
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40906&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40906&report=yes
Search -- http://master.php.net/manage/user-notes.php