exhal icon indicating copy to clipboard operation
exhal copied to clipboard

Compression ratio improvement proposal

Open romhack opened this issue 7 years ago • 4 comments

Check out this notes: http://romhack.github.io/doc/halCompression/ Or directly this tool: https://github.com/romhack/kirbyLzRle/ You could consider your code revision for better compression ratio.

romhack avatar Feb 24 '18 16:02 romhack

Coincidentally, I've actually implemented a shortest-path search in compress.c pretty recently. I just haven't released/pushed it yet since I'm still trying to optimize it for speed, but I may try to do that soon.

An example of using the current (unreleased) implementation to compress itself: inhal.exe uncompressed: 29184 bytes compressed (original search): 18747 bytes compressed (new search): 18550 bytes

I'm not sure if it's exactly the best compression possible, but there is an improvement over the existing version.

devinacker avatar Feb 24 '18 16:02 devinacker

Great! Looking forward to see your code. Could you please meanwhile let me know copressed sized of files attached below? benchmarks.zip

romhack avatar Feb 24 '18 19:02 romhack

introUncompressed.bin: 789 plologue2Uncompressed.bin: 513 titleUncompressed.bin: 564

Looks like the results are similar so far, although for plologue2Uncompressed.bin the improved search provides the same search as the original.

devinacker avatar Feb 24 '18 19:02 devinacker

Wow! Looks impressive. Could you kindly attach here compressed files introUncompressed.bin and titleUncompressed.bin?

romhack avatar Feb 26 '18 09:02 romhack