Software Review: BDiff

Posted by dave on Jan 19, 2004 12:56 PM
LXer; By Dave Whitinger

bdiff is a "binary diff" and, rather than going line by line, it goes byte by byte.

Since migrating to the MyISAM table format of MySQL, I have had to use the --opt option to mysqldump in order to make SQL files that can be imported in a reasonable amount of time.

The unfortunate side effect of --opt, however, is that each table is turned into one long line (and a 120 meg table makes a VERY long line!).

Alas, when creating a diff of yesterday's table to today's table, now the entire table is included in the patch file because that single line (the 120 meg line) has been changed. :( What I need is a byte-by-byte diff, rather than a line-by-line diff.

Enter a handy tool called bdiff.

bdiff is a "binary diff" and, rather than going line by line, it goes byte by byte. It produced a 2KB patchfile from a 47 meg database, for example, while the standard diff utility produced a patch that was actually bigger than the original! And, bdiff is quite fast!

I have found my new diff utility. Ahhh, a man and his tools. :)

Dave

Return to the LXer Features

This topic does not have any threads posted yet!

You cannot post until you login.

LXer

  Latest Features
Dr Tony Young: A KMail Breakthrough.
May 01, 2016

James Dixon: Installing jstock with Slackware 14.1
Jan 19, 2016

James Dixon: Installing sbopkg with Slackware 14.1
Jan 16, 2016

James Dixon: Open Source Wealth Management
Jan 15, 2016

Hans Kwint: GNUifying Windows: Make the best of imposed Windows-use at work
Oct 23, 2015

Dr. Tony Young: Update to "How long is a piece of string?"
Oct 20, 2015

Russell Hollander: Chromebooks, Linux, and Lenovo
Sep 23, 2015

Scott Ruecker (Phoenix, U.S.) : Interview With Richard Kenner of AdaCore
Aug 29, 2014

penguinist: Better Than a Quad-Head Display: My Adventures with "4K" 2160p and Linux
Mar 31, 2014

Dr Tony Young: Replacing KDE4 with Xfce
Mar 07, 2014


View all

  Search Features

Search LXer Features:

[ Copyright © LXer | All times are recorded in Central Daylight Time (CDT) ]

[ Contact Us | Privacy Policy | Terms of Service | About us | rss | Mobile ]

Login