Menu
About me Kontakt

Why do compressed JSON files take up more than 20x less space on Raspbian than on a Mac?

The article on SuperUser raises an interesting question regarding the size of tar.xz files. Specifically, the user focuses on the differences in file compression using Python's tar library compared to the tool available on macOS. The user observed that files compressed using Python are significantly smaller – up to 15 times – compared to those created on a Mac. The discussion in the comments suggests that this could be due to different compression methods and algorithms employed by the various tools. Furthermore, one user mentioned that the default compression level set in Python may differ from that in macOS, which could impact the final file size. This entire situation highlights intriguing aspects of compression differences and how various tools may affect disk space savings. This question serves as a reminder of the importance of selecting the right tools and settings when working with archive files to maximize disk space efficiency.