Jump to content
  • Advertisement
Sign in to follow this  
BeanDog

Free diff compression tool/library?

This topic is 4615 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!