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

Make it smaller? #13

Open
xem opened this issue May 26, 2022 · 1 comment
Open

Make it smaller? #13

xem opened this issue May 26, 2022 · 1 comment

Comments

@xem
Copy link

xem commented May 26, 2022

Hi,

I read your code and congrats, there are very interesting tricks used here to make your diff algorithm.

I have also worked on diffing a while ago, and found that the most efficient (in term of size and execution speed) seemed to be Myer's diff algorithm: https://blog.robertelder.org/diff-algorithm/

I minified and golfed it and reached a size of 406 bytes (without gzip):
http://xem.github.io/miniDiff/

So this is not really an issue, but if you're intersted to make your code shorter, this could be an idea.

Cheers,
Max

@alexmacarthur
Copy link
Owner

This is amazing! Not a priority for me right now, but I'm definitely open to it. Well done.

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