Req #77281 [NEW]: zstandard compression support

From: Date: Tue, 11 Dec 2018 05:57:50 +0000
Subject: Req #77281 [NEW]: zstandard compression support
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218387@lists.php.net to get a copy of this message
From: rh_whatwg at skuldwyrm dot no Operating system: PHP version: Next Major Version Package: *Compression related Bug Type: Feature/Change Request Bug description:zstandard compression support Description: ------------ zstandard provides better compression at it's lowest level than deflate (zlib / gzip) on it's highest level. zstandard is also faster that deflate on both compression and decompression. https://facebook.github.io/zstd/ By the looks of it zstandard can become the longterm replacement/successor for both gzip and bzip. The webserver ngninx has a feature request for zstandard and support should be added soon (I believe nginx master has it by now). Weget2 supports it as well. IANA and RFCs exists that define it properly so it should only be a matte of time before it joins brotli and gzip as part of the compression methods browsers support. PHP can help speed up adoption by adding support for it in the next major (8.0) or if possible minor (7.4) release. zstandard license is the 3 clause BSD, the previous controversy that facebook initially added added a "+PATENTS" clause has been removed, so the license is now the normal 3 clause BSD. Speeds varies and there are a lot of benchmarks available now if you search the net (so you don't have to take my word for it). Speed can be on par with lz4 while compression can be on par with bzip and lzma. There are levels of compression from 1 to 19 with extra ultra levels from 20 to 22. The reference implementation includes multithread support which roughly doubles the compression speed with no major impact on compression ratio, this "should" work fine on non-threadsafe PHP builds as well. -- Edit bug report at https://bugs.php.net/bug.php?id=77281&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77281&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77281&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77281&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77281&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77281&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77281&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77281&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77281&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77281&r=support Expected behavior: https://bugs.php.net/fix.php?id=77281&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77281&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77281&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77281&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77281&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77281&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77281&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77281&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77281&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77281&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77281&r=mysqlcfg

« previous php.bugs (#218387) next »