Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extraction of tar.gz file takes too long #1237

Open
shenghuang147 opened this issue May 25, 2024 · 4 comments
Open

Extraction of tar.gz file takes too long #1237

shenghuang147 opened this issue May 25, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@shenghuang147
Copy link

shenghuang147 commented May 25, 2024

Device Model: XiaoMi 10 Ultra
Android Version: 10 QKQ1.200419.002
MIUI Version: xiaomi.eu 12.0.10
MaterialFiles Version: 1.7.2 (37)
Source: F-Droid

I compressed all font files from the Fonts file of Windows 11 21H2 into Fonts.tar.gz , which contains a total of 336 font files

I found that MaterialFiles takes 5 minutes to fully extract this file, while using tar -zxf Fonts.tar.gz in termux only takes 3.3 seconds

.../Fonts $ time tar -zxf ../Download/Fonts.tar.gz

real    0m3.300s
user    0m2.785s
sys     0m0.482s

start: 00:55:40

图片

end: 01:00:37

图片

@zhanghai
Copy link
Owner

How large is the tar.gz file itself? My suspicion is that the decompression of every single file requires reading the archive from the beginning again. Not sure if this can be optimized easily.

@zhanghai zhanghai self-assigned this May 25, 2024
@zhanghai zhanghai added the enhancement New feature or request label May 25, 2024
@shenghuang147
Copy link
Author

shenghuang147 commented May 26, 2024

How large is the tar.gz file itself? My suspicion is that the decompression of every single file requires reading the archive from the beginning again. Not sure if this can be optimized easily.

only 191MB

@zhanghai
Copy link
Owner

Then it may just be that reason, decompressing roughly 300 * 100 MB = 30 GB of data

@Feuerswut
Copy link

Yeah, have this issue as well, depends on library implementation. maybe the extract all specifically should be optimised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants