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

applesauce compresses at a negative rate #85

Open
rhizoome opened this issue Sep 17, 2024 · 2 comments
Open

applesauce compresses at a negative rate #85

rhizoome opened this issue Sep 17, 2024 · 2 comments

Comments

@rhizoome
Copy link

rhizoome commented Sep 17, 2024

It should probably not attempt to compress files that are smaller than the file-systems block size.

» applesauce info pyvenv.cfg
pyvenv.cfg is not compressed
Uncompressed size: 343
Number of extended attributes: 1
Size of extended attributes: 11 bytes
» applesauce compress --verify --minimum-compression-ratio 0.9 pyvenv.cfg                          [20:17:17]
                   Total: ██████████████████████████████████████████████████████████       343 B/343 B       0s    Total Files: 1
New Files Compressed: 1 (1 total compressed)
Starting Size (total filesize): 343 B (343)
Starting Size (on disk):        4 KiB (4096)
Final Size (on disk):           4 KiB (4096)
Savings:                        0.0%
» applesauce info pyvenv.cfg                                                                            [20:18:42]
pyvenv.cfg is compressed
Compression type: LZFSE in decmpfs xattr
Uncompressed size in decmpfs xattr: 343
Uncompressed size: 343
Compressed size: 4096
Compression savings: -1094.17%
Number of extended attributes: 1
Size of extended attributes: 11 byte
@rhizoome rhizoome changed the title applesauce compresses at a negative rate: applesauce compresses at a negative rate Sep 17, 2024
@rhizoome
Copy link
Author

rhizoome commented Sep 17, 2024

EDIT: Having read the code I understand that this is only a display error.

@rhizoome
Copy link
Author

I checked with this program. The compressed size is 246, so it is just a display error. It should display the size of the xattr, not the block-size.

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

1 participant