note 53830 added to function.gzcompress

From: Date: Tue, 14 Jun 2005 14:39:03 +0000
Subject: note 53830 added to function.gzcompress
Groups: php.notes 
Request: Send a blank email to php-notes+get-90419@lists.php.net to get a copy of this message
If no parameter is given, the default level of 6 is used. benchmarking the speed: (compression, datasize, compress time) 0: 37440 (0.002 s) 1: 2537 (0.002 s) 2: 2298 (0.003 s) 3: 2199 (0.003 s) 4: 2299 (0.003 s) 5: 1939 (0.004 s) 6: 1789 (0.004 s) 7: 1724 (0.004 s) 8: 1635 (0.005 s) 9: 1635 (0.005 s) Level 0 = no compression, then level 1-4 are roughly the fastest to compress with reasonable quality. level 5-7 give better compression but take a little longer and 8-9 take nearly double the time to compress but give best results. So the system default of 6 is actually a good compromise in speed/size. But for very fast compression times, I go with the threshold value of 3. ---- Manual Page -- http://www.php.net/manual/en/function.gzcompress.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53830 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53830&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53830&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53830&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53830&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53830&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53830&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90419) next »