-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chrome finally ships Accept-Encoding: zstd — Please update example #70
Comments
I'm quite happy chromium browsers now announce that they accept zstd. It's far faster than either gzip or brotli. Of course, based on my own testing I've actually gone ahead and created my own replacement for PHP's Here's the PHP developer server sending zstd compressed output to chrome: I haven't yet made a release of CompressionBuffer as it's only had minimal testing done plus no unit tests written, but the logic behind it is pretty straightforward and PHPStan is happy on it's highest level. Although it's not super important for just an example, I personally include it over the above code example as that one is what I would consider incomplete. At the very least it would probably be worth mentioning that Either way, thank you @kjdev for building both this and the brotli extension! They are great additions to the PHP ecosystem. I for one am exciting knowing that some clever handling of the output buffer means PHP apps can utilize zstd compression before either NGINX or Apache get official support for it. Awesome! |
Thanks @BelleNottelling, much appreciated! |
You're welcome @jab4! Feel free to submit issues if you come across any issues & notice potential improvements. Hope it comes in handy :) |
Hi and late Happy Easter all!
As the title suggests, no issue in the buggy sense.
I ran some benchmarks against a 4 MB HTML file:
Kindly suggest updating your README's example section to include output buffering:
Perhaps @remicollet could put some soft pressure on the PHP core team to bundle this extension? 🚀
Thanks!
The text was updated successfully, but these errors were encountered: