cheminfo / cheminfo/nmrium

jsZIP is slow

Open
#1,967 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
80
Forks
34
Avg merge
2d 9h
Merged PRs (30d)
36

Description

The .nmrium file is compressed by default using ZIP (first bytes are PK)

This allows to win a lot of space, from 53.8 Mb to 21.3 Mb.

However this is also a super slow process ... Without compression it would take 2s and with compression it takes 20s !

![image](https://user-images.githubusercontent.com/1484241/204878818-12d209df-04ac-4766-8f0b-8927b324dc9e.png)

We could try to compress the data using pako.gzip (anyway there is only one file so it could be as well gzip and not zipped).

Chrome also has a native API for compression: https://developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API and this could be tested as well.

@targos WDYT ?

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.