Re: Don: Compare Directories and Files

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Don,
Maybe this method will be faster:
1. Sort both listings, seperately
2. Have a routine that steps through both lists, comparing.
   a) Grab one record each from list1 and list2
   b) if two records are equal, go back to (a).
   c) If the record in list1 is greater than the record in list2, then 
      the record in list2 is missing from list1; assume that the list1
      record is a new one. Write it, get another record from list2, goto (a)
   d) Same as (c) but transpose the 2 lists  

I have an example of this in the archive, it speeds through megabytes of data
in less than a second, if the data is in cache. See "difflist" by me.

Cheers
Alan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu