[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] PHP5: H vornår skal man vælge hvilken komprimering?



Hej,

On 22:39 Sun 09 Jul 2006, "E. Sjørlund" wrote:
> Jeg sidder og funderer lidt over hvilken type komprimering, der skal
> anvendes i hvilken sammenhæng.
> Kildeeksempel:
> <?php
> $test="Den lille røde ræv sprang over hegnet efter en agerhøne, som slet
> ikke brød sig om det, men fløj sin vej i en fart, der ikke var ulig en
> gumpetung frøs spring ud i en sø.";
> print(strlen($test) . ": " . $test . "<hr>");
> $bztext=bzcompress($test,9);
> print("bz: " .strlen($bztext) . ": " .bin2hex($bztext) . "<hr>");
> // print(bzdecompress($bztext) . "<hr>");
> 
> $gztext=gzcompress($test,9);
> print("gz: " .strlen($gztext) . ": " .bin2hex($gztext) . "<hr>");
> // print(gzuncompress($gztext) . "<hr>");

bzip2 komprimerer generelt bedre end gzip, men komprimeringen tager også
længere tid og bruger mere ram, så hvis du har en hurtig maskine kan det
måske betale sig at bruge bzip2.

/Anders



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-08-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *