OlegDB OlegDB Blog Downloads FAQ Docs Community Content right_side_nav Grid 2014-06-16 by Quinlan Pfiffer Comments Way back in 0.1.1 we added the ability to compress your data using LZ4. Since I haven't written in a while and we'd never really measured the performance aspects of using LZ4, I figured now was as good a time as any. Segfaults are low, moral is high and coverity isn't yelling at us too morosely. We use LZ4 compression for a couple of reasons, mainly that it's fast and that it reduces the memory required to store items both on-disk and in-memory. Ever since I rewrote the database to use mmap() the second one hasn't really been an issue, but on-disk compression is still something nice to have. Given how easy LZ4 was to add to the project and how fast it is this is basically a win-win. So, to get started I wrote a naive memory checking script ...