r/compression • • 9d ago

Tinycodec/TCOM v1.1

Post image

GitHub is here: https://github.com/OzzyMitchell/tinycodec

I found that I focused too heavily on whether or not TCOM was tiny, or low lines of code, or compact source, and all that, and so I decided to move away from that obsession a bit because I realized that the benefit of TCOM was not really in whether or not it was the smallest practical codec.

The codec itself is still under 8 kb in terms of the actual size of the core codec. The cli and otherwise is larger of course but the codec itself is still very, well, tiny.

Besides that, I also made it easier for independent benchmarks to be done by making an interactive benchmark terminal of sorts! The full corpus was too large to fit into GitHub practically so I decided to make an image set of 640 images and benchmark on those, so people can benchmark this much easier, plus it's smaller so you don't need a 9950x3d to benchmark it in a practical amount of time.

You can decide which of the 5 codecs to benchmark against, which libpng levels, file/io included or excluded, how many in memory repetitions you'd like to do, and run the test. You can also use any folder of images you want by posting the folder path or individual images if you really want.

That's all. Just wanted to mention the release here.

2 Upvotes

0 comments sorted by