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

Compress json to zip #191

Open
sawka6630 opened this issue Jun 8, 2024 · 1 comment
Open

Compress json to zip #191

sawka6630 opened this issue Jun 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@sawka6630
Copy link

Please add post-export zip compression of json files (created by auto backup feature particularly). It will reduce the target file size significantly.
For example:

  • contacts.json file comes from 15.51 Mb to 673 kb when compressed using regular (level 6) compression and to 592 kb when compressed using the highest (level 9) compression,
  • calls.json file comes from 2.69 Mb to 109 kb (level 6) and to 99 kb (level 9).

In general this will allow to save ~17.5 Mb per day.

@tmo1 tmo1 added the enhancement New feature or request label Jun 9, 2024
@tmo1
Copy link
Owner

tmo1 commented Jun 9, 2024

I agree that the space savings would be desirable. If and when we switch the format from simple JSON to (ND)JSON encapsulated in a ZIP file, then we'll get compression automatically (as is currently the case for messages), but format changes require careful consideration and planning, since they break backward compatibility.

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

2 participants