--------------Boundary-00 H9FERK07BXTNFUOMP2H Content-Type: text/plain; charset so-8859-1" Content-Transfer-Encoding: 8bit I've come up with my first Ruby program (below). Actually, it's a library module that implements the Hunt/McIlroy "diff" algorithm. It was pretty fast to write (I more or less translated it from my Perl CPAN module), but it may not have been a great choice. (I'm going to post it to RAA, so I'll have more questions about the right way to package it). I'm a bit frustrated with the speed. On a pair of 4000 line arrays of text, it runs on my machine in 35 seconds. My Perl code, on the other hand, does the same job in 25 seconds. Of course, it's fast enough on smaller arrays. I've looked at it quite a bit, and even wrote a line profiler, but can't manage to make it much faster. The single biggest chunk of time is spent in the binary search routine in replaceNextLargerWith(). I found that I could make it a tiny bit faster by doing a single <