You analyze the frequency of combinations of bytes, then replace those with high frequency with pointers to a single instance.
Deduplication ^
Deduplication ^