in reply to Code Efficiency

If I understand correctly, this can be done in the shell using less than 20 characters (yeah, shell!):
sort -u Sub*/*html
With the added benefit that sort knows how to sort huge lists efficiently. (This is assuming that your shell doesn't have problems with the number of arguments that result from the expansion - but even then, a shell solution is way smaller)

But if you really want to save time, you shouldn't look in sorting/uniquing phase. Look at the updating phase. Keep files sorted. Reduce the number of files. Reduce the number of files per directory.

Abigail

Replies are listed 'Best First'.
Re: Re: Code Efficiency
by fourmi (Scribe) on Mar 25, 2004 at 13:20 UTC
    i WISH i was using nix! just came to the same conclusion re: updating too, i can't changed the tree/file structure, but the updating is a sinch now hopefully (queue BSOD)
    cheers!

      i WISH i was using nix!

      Unixish utilities are available for many platforms, including MS Windows.

      Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

      windows also has a built in sort. run help sort from the command line for options.
        oooh! didn't realise, thanks!!