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

Compressing small files increases archive size #101

Open
1 of 4 tasks
d-divita opened this issue May 30, 2024 · 4 comments
Open
1 of 4 tasks

Compressing small files increases archive size #101

d-divita opened this issue May 30, 2024 · 4 comments

Comments

@d-divita
Copy link

Select your issue type: (check at least one)

  • Bug
  • Question
  • Suggestion
  • Other (please describe):

Describe your issue:
When compressing small files, for example a bunch of small .txt files, the resulting archive is bigger than the files it contains.

Ways to Reproduce the issue (optional):

  1. Create a .txt file with a few words in it (it will be some bytes in size)
  2. Compress it via QArchive
  3. The resulting archive is about 10KB (tested with ZipFormat, SevenZipFormat, TarFormat)
@antony-jr
Copy link
Owner

@d-divita do we have a baseline, like have you compared with Ark or any other archive tool, does it produce smaller archives than QArchive?

@antony-jr
Copy link
Owner

Also, we should try to compare QArchive with bsdtar (this is installed by default on all linux distro), the one that is included with libarchive.

Since I have no control over the compression algorithm, its all libarchive.

@d-divita
Copy link
Author

d-divita commented May 31, 2024

Sorry I forgot to mention it, I'm on Windows 10/11. I compared it with the built-in zip compression and with 7zip.
Libarchive is the latest stable version, I've used the prebuilt binaries for Windows.

@antony-jr
Copy link
Owner

Let me investigate this more.

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

No branches or pull requests

2 participants