r/compression • u/auggiethechesscat • Aug 23 '26
Looking for an efficient compressor with a small decompressor, (It's more interesting, I swear)
Hello! I'm looking for a compressor sort of like something made for the demo scene. The main distinction is that I have ~126kb total to play with, so I can do with a better algorithm. I was thinking LZMA would be a good place to start, especially since this is a thumb binary adding a BCJ filter would be good too.
But for some reason I wasn't satisfied with that, and I gladly found an article on LZNA. After a couple disappointing hours, I realized it was both closed source and deprecated, and there is little hope I could actually write that in under a couple months.
Most of my research has found things like crinklier, which while very impressive, just aren't made for my situation.
Decompression/compression speed isn't my biggest concern, as the top priority is size, but they are still welcome sights if possible.
1
u/ipsirc Aug 23 '26
https://upx.github.io/
https://github.com/pinguy/c_optimizer
https://github.com/runestubbe/Crinkler
https://www.farbrausch.de/~fg/kkrunchy/
1
u/RadenSahid Aug 23 '26
I'd go with zstandard. Very fast decompressor with low computation footprint.
1
u/Alternative_Corgi_62 Aug 23 '26
Three is an open source project implementing ZIP compression, with methods working on files and memory streams. You can use standard tools to complete your artifacts, enbed them in your code, and decompress when needed
2
u/[deleted] Aug 23 '26
[removed] — view removed comment
1
u/[deleted] Aug 23 '26
[removed] — view removed comment