Closed Dr-Emann closed 1 year ago
Thanks. My memory of the implementation is a bit rusty; I take it you checked what your change implies for the resulting compressed files?
(I guess I really should sit down sometime to rewrite the code as something much more readable ...)
Did some more testing, and found a problem, but now this works consistently with both LZVN and LZFSE with whatever random files I throw at it.
Yeah, the code is pretty hard to navigate, it could definitely use some cleanup at some point.
The chunk table should have
numBlocks
32 bit numbers: by usingnumBlocks * sizeof(chunktable)
bytes, we were instead making the chunk table 2 times too large on 64 bit machines:sizeof(chunkTable)
issizeof(pointer)
, but we really only want 4 bytes per item