Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compression ratio improvement proposal #7

Open
romhack opened this issue Feb 24, 2018 · 4 comments
Open

Compression ratio improvement proposal #7

romhack opened this issue Feb 24, 2018 · 4 comments

Comments

@romhack
Copy link

romhack commented Feb 24, 2018

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.

@devinacker
Copy link
Owner

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.

@romhack
Copy link
Author

romhack commented Feb 24, 2018

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

@devinacker
Copy link
Owner

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.

@romhack
Copy link
Author

romhack commented Feb 26, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants