cheminfo / cheminfo/mzData

Use native chrome decompression

Open
#16 0 comments 0 reactions 1 assignee Claimed by @lpatiny View on GitHub
Dominant language
JavaScript
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

We should check if DecompressionStream exists and use it if available

Problem ... it will become async but we could win up to a factor 2.

```
async function DecompressBlob(blob) {
const ds = new DecompressionStream('gzip');
const decompressedStream = blob.stream().pipeThrough(ds);
return await new Response(decompressedStream).blob();
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.