Skip to content

A Curious Case with bzip3 compression #146

Answered by kspalaiologos
pete4abw asked this question in Q&A
Discussion options

You must be logged in to vote

E.g. consider this:

 [13:16] ~/silesia % for F in *; do bzip3 $F; done
 [13:16] ~/silesia % wc -c *.bz3
 2233954 dickens.bz3
15881570 mozilla.bz3
 2119990 mr.bz3
 1425956 nci.bz3
 2526882 ooffice.bz3
 2261872 osdb.bz3
  980475 reymont.bz3
 3976068 samba.bz3
 4673313 sao.bz3
 6787036 webster.bz3
  405877 xml.bz3
 3657090 x-ray.bz3
46930083 total
 [13:17] ~/silesia % rm -rf *.bz3
 [13:17] ~/silesia % tar -cf silesia.tar *
 [13:17] ~/silesia % bzip3 -veb16 silesia.tar
 silesia.tar:	211957760 -> 47237109 bytes, 22.29%, 1.78 bpb

Compressing the files separately gives an even better result.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pete4abw
Comment options

pete4abw Nov 20, 2023
Maintainer Author

Answer selected by pete4abw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants