(De)compression streams are now supported in all web browsers: https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream
Pako is pretty fat and slow. There's also fflate, which is faster and more lightweight, but migrating to that doesn't make much sense now that a native solution is available. Maybe compression streams could be used by default with fallback to pako (at least for now) ?
Context: I was experimenting with tabix & gff-js and there seems to be several optimization opportunities. However, this would probably the most straightforward one, assuming that the native decompression stream is at least as performant as fflate is.

(De)compression streams are now supported in all web browsers: https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream
Pako is pretty fat and slow. There's also fflate, which is faster and more lightweight, but migrating to that doesn't make much sense now that a native solution is available. Maybe compression streams could be used by default with fallback to pako (at least for now) ?
Context: I was experimenting with tabix & gff-js and there seems to be several optimization opportunities. However, this would probably the most straightforward one, assuming that the native decompression stream is at least as performant as fflate is.