News for hackers. Stuff that matters.
Re:Hello, PNG by Dylan16807 on Thursday January 19, 2023 @05:41AM (#34438861)
Just simplify it further. Get rid of the implicit +4 to the match size. 0-15 instead of 4-19. Now you can guarantee any block size you want.

If you wanted to go even simpler, here's an entire compression format described in one line:

one byte literal length, one byte match length, two bytes match offset, 0-255 literal bytes, repeat

There are no comments on this comment yet.