“Apple released its favourite algorithm, known as Lempel-Ziv Finite State Entropy or LZFSE, as open source in 2015”

Link. Brief readable summary of lossless compression. It was such a mess in the 80s. Lots of patent issues.