8 ms·
> small source files How small are we talking? We've had great success with bzip-style compression on ~400 KB (about 20% better than gzip), but I don't know if
by purplesyringa 3mo ago
> small source files
How small are we talking? We've had great success with bzip-style compression on ~400 KB (about 20% better than gzip), but I don't know if it scales well. It's also relatively fast to decode (something like 2x slower than DEFLATE, IIRC).
I was also considering other approaches, specifically GLZA (https://encode.su/threads/2427-GLZA https://encode.su/threads/2427-GLZA) looks promising. I think it should be well-suited for code due to its design, and it seems to produce better results than bzip on LTCB (https://mattmahoney.net/dc/text.html https://mattmahoney.net/dc/text.html), and with a faster decompression time.
- wahern 2mo agoVery small, less than a few kilobytes, and many less than 1KB. I was compressing and embedding Lua source files individually. There were smarter ways to do it if I cared about overall size, but doing it per file kept the build simple. I spent way more time on the compression test harness, which was more about satisfying my curiosity and penchant for diversion than anything :) I did the tests after the actual embedding work.