Repository navigation
Replies: 1 comment
|
I'll have to take another look at the performance of native CompressionStream. But I've already made an fflate-based CompressionStream polyfill: https://github.com/101arrowz/compression-streams-polyfill |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What can't you do right now?
By adding an adapter layer, fflate can work as a Compression Streams ponyfill. Since Compression Streams is quite new, this is useful in the future months.
see Can I Use CompressionStream API
Also, the proposed ponyfill comes with extra compression options (like
level,dictionary) which the spec doesn't yet support, this is useful for next coming years.B.T.W. Currently native CompressionStream API is 2x more faster than fflate in most cases, use of WebAssembly/WebWoker is hepefully to speed up fflate by 50%.
An optimal solution
Code samples:
ponyfill.js
ponyfill.test.js
(How) is this done by other libraries?
All reactions