Skip to content

Use browser-native DecompressionStreams #61

@tuner

Description

@tuner

(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.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions