Posts tagged: C
Optimizing lz4_stream for Uncached Memory 20 Nov 2025
The loading side of my content framework relies heavily on compression, but it also relies on the compression library being able to pause and resume (in the way that the standard zlib and LZMA interfaces allow), which isn't (wasn't?) available with LZ4 back when I first adopted the format. So I wrote my own LZ4 decoder to support just that. Unfortunately, I recently hit a really bad performance snag.
Read more...Don't Forget the Inline! 31 Jul 2025
If you're writing a header file and you're at global or namespace scope, then you almost certainly do not mean to declare bare const or constexpr variables.