note 84097 added to function.uniqid
| From: | DennisDuKrger at osu1 dot php dot net | Date: | Fri, 27 Jun 2008 11:24:07 +0000 |
| Subject: | note 84097 added to function.uniqid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140867@lists.php.net to get a copy of this message | ||
On a core2 2Ghz, this script took 8.2 seconds on Ubuntu 8.04, PHP 5.2.4 (Suhosin patch):
<?php
for($i = 0;$i<1000000;$i++)
$test = uniqid();
?>
I can't see where your slow uniqid() on Linux is coming from.
----
Server IP: 87.54.44.10
Probable Submitter: 83.93.156.56
----
Manual Page -- http://www.php.net/manual/en/function.uniqid.php
Edit -- https://master.php.net/note/edit/84097
Del: integrated -- https://master.php.net/note/delete/84097/integrated
Del: useless -- https://master.php.net/note/delete/84097/useless
Del: bad code -- https://master.php.net/note/delete/84097/bad+code
Del: spam -- https://master.php.net/note/delete/84097/spam
Del: non-english -- https://master.php.net/note/delete/84097/non-english
Del: in docs -- https://master.php.net/note/delete/84097/in+docs
Del: other reasons-- https://master.php.net/note/delete/84097
Reject -- https://master.php.net/note/reject/84097
Search -- https://master.php.net/manage/user-notes.php