This compresses each line as a delta against its prior line if the delta is smaller. It is not optimal to always pick the prior line as the base.
Consider _Cluster-Based Delta Compression of a Collection of Files_ https://dl.acm.org/doi/10.5555/645962.674230 https://research.engineering.nyu.edu/~suel/papers/cluster.pd...