Sign in to follow this  

Free diff compression tool/library?

This topic is 4395 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know of a free library or command-line utility that does diff compression? That is, it takes a base file and a changed file and produces a third file representing the changes required to turn the first into the second. Then, provided with the first file and the third one (that it produced), it can reproduce the second. Phew. Make sense? It would be great if I could find a library to do this in-memory in C#, but even a command-line tool would help a lot. ~BenDilts( void );

Share this post


Link to post
Share on other sites
I don't need a visual representation of the changes that have been made; I just need a file representing those changes. I also need the ability to diff-compress binary files.



~BenDilts( void );

Share this post


Link to post
Share on other sites
There are both available, just google for them. The easiest way I've found for source files though is to just use GNU diff and pipe the output into tar->gzip. It gets the job done, it's a standard distributable file format, and there are plenty of scripts out there to help you along the way.

As for binary files, just google for it. You could write your own, but I don't recommend it simply because they're picky and require a good bit of debugging to get just right. But then again, I really don't recommend distributing binary differences; binaries barely dent your connection, even at 10-20megs. But, if you must, you must.

google is your friend :3

Share this post


Link to post
Share on other sites

This topic is 4395 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this