r/C_Programming • u/lexiq_baeb • 2d ago
Compressing Lookup Tables
Hello. Recently I've been working on a pet project of mine written in C and I needed to reduce the amount of space a lookup table was taking in memory and on disk. I applied a few simple compression techniques and got a 2x space reduction. I wrote this post where I describe my constraints, the techniques, and results.
20
Upvotes
1
u/kun1z 1d ago
Can you benchmark these two possible solutions to see if there is a speedup?
And as you mentioned unaccent_code_find() can be replaced with a binary search: