I have some svg
files that I want to be tracked by git
.
However, most software can transparently deal with svgz
(which is basically svg.gz
).
Therefore, I was considering switching to svgz
to save disk space.
What are the pros and cons of having them as svgz
instead of svg
from a git
perspective?
My naive idea is that the git
diff algorithms are optimized for text files and would not work equally well on their compressed counterpart.
Since the diffs are also compressed, I assume that the overall approach is very efficient for text files, where the differences take up very little disk space.
Instead, for the compressed data, it would tend to save larger files internally, and eventually I would expect that at some point the repository may end up taking up more space for compressed files.