Hacker News new | ask | show | jobs
by EarthLaunch 1044 days ago
This is actually kind of genius:

> To reduce transmission overhead, the Kermit protocol uses a simple, but often surprisingly effective, compression technique: repeated byte values are represented by a count+byte combination.

> Analysis of large volumes of both textual and binary data shows an average compression of 15-20%.

1 comments

>repeated byte values are represented by a count+byte combination.

That's just an implementation of RLE[0]. Very common in formats from the 80s. RLE was e.g. used in Amiga IFF ILBM compression.

0. https://en.wikipedia.org/wiki/Run-length_encoding