Loading Content
How to decode LZ4 20 Nov 2025
As background for the following post in this series, I need to describe the LZ4 format and how to decode it. This was going to be part of the next post, but it got way too big. And, anyway, maybe this will be of use to someone on its own, and it'll be easier to find here than in the middle of a wall of text.
Read more...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...