StringList Comparison

A few weeks ago I wrote about using the List Comparison algorithm to optimize a slow nested loop.  This evening I saw someone on the Delphi forums asking about a way to compare two TStringLists, so I wrote up a quick version of the List Comparison algorithm specifically for TStringLists.  I used the basic algorithm as a higher-order function that you can pass method pointers to to configure its behavior, and added a few built-in comparison functions that perform common tasks.  You can find it in the Downloads page.  I’m working on a List Comparison library that uses generics and anonymous methods to compare TList<T> descendants, but it’s not done yet.  I’ll post it here when it’s ready.

One Comment

  1. Brad says:

    Any updates on this?

    Thanks

    -Brad