I've got a Linux question. But first some context.
I'm running Manjaro, on a btrfs filesystem with zstd compression activated.
Since Manjaro is an Arch distro, I get my software updates through pacman, which gets packages also compressed with zstd.
Ever since I switched to compressed btrfs I noticed something: pacman downloads take just as long as before, but the installation itself is basically instant.
So my question is: does my system know that, since the pacman packages have the same compression applied to them as my btrfs filesystem, it doesn't need to decompress the software packages only to recompress them again for btrfs? Does it actually just skips decompressing during install and just plops the files compressed as they are to the disk?
I can't figure out why installs have been so fast for me lately, and this is the only explanation that makes sense to me.
@ivesen
Right after I started using compression.
@ivesen
Configuration is the default. Thing is, neither my SSD, nor my CPU are that fast. Especially the CPU. Don't think the data saving itself can be that big to make such a big difference.
@ivesen
If zstd decompression and recompression is basically instantaneous, and my system manages to recompress the 4100MB worth of packages back to 1200MB when writing to disk, considering the install time of 1 minute, that would mean the drive would have to write just 20MB/s, which does indeed sound a lot easier for it to do, than the almost 70MB/s it would need to do for 4100MB uncompressed. But I have my doubts that the recompression bit really is that fast and that the default compression is that high.