note 21991 added to function.md5
| From: | php-general at lists dot php dot net | Date: | Mon, 03 Jun 2002 04:55:50 +0000 |
| Subject: | note 21991 added to function.md5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31367@lists.php.net to get a copy of this message | ||
In regards to serializing an object, if find that:
md5(join('', get_object_vars($object)));
is about %25 percent faster than:
md5(serialize($object));
Interesting, as I would have thought that join would make it slower...
--
http://www.php.net/manual/en/function.md5.php
http://master.php.net/manage/user-notes.php?action=edit+21991
http://master.php.net/manage/user-notes.php?action=delete+21991
http://master.php.net/manage/user-notes.php?action=reject+21991