note 46635 added to function.convert-uuencode

From: Date: Mon, 18 Oct 2004 17:17:47 +0000
Subject: note 46635 added to function.convert-uuencode
Groups: php.notes 
Request: Send a blank email to php-notes+get-78729@lists.php.net to get a copy of this message
I created a script that ran a uuencode, then a uudecode, testing their times. <?php $text = '...'; // 3000 Words generated by http://www.lipsum.com $now = microtime(); $encoded = convert_uuencode($text); $after_encode = microtime() - $now; echo "It took $after_encode seconds to encode 3000 words.<br/>\n"; $now = microtime(); $encoded = convert_uuencode($encoded); $after_decode = microtime() - $now; echo "It took $after_decode seconds to decode 3000 words.<br/>\n"; ?> My results on Slackware 10, PHP 5.0.2, Apache 2.0.52, and Mozilla Firefox: It took 0.000308 seconds to encode 3000 words. It took 0.000399 seconds to decode 3000 words. 3000 words! It's quite fast. And check out these results: It took 0.000781 seconds to encode 50 kilobytes. It took 0.001076 seconds to decode 50 kilobytes. ---- Manual Page -- http://www.php.net/manual/en/function.convert-uuencode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46635 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46635&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46635&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46635&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46635&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46635&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46635&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+46635&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78729) next »