> I guess, but how long does it take to open and close a
> file? Seems pretty darn fast when I open and close
> them from any app I've ever written.
A handful of files, yes it's as fast as one could want. Unfortunately here
we're talking at least a couple of hundred.
Then there's the time taken to do a directory scan with
findfirst()/findnext().
> I'm not even
> sure how ORENUM does it anyway, but I'll bet opening
> and closing files is an insignificant amount of time
> in the renumbering process, but I'd be taking a wild
> guess there.
It is the most significant time (at least in the versiuon of renum that I
wrote) if you kill messages by date, as every single message has to be opened
and parsed and closed. In most other situations, the message file renaming
process (ie the actual renumbering) takes about the same time as you
open()/close() each message twice.
> Rebuilding the index would be the long
> part, wouldn't it?
Have you ever seen how fast my Opus user database utility re-indexes :-)
TREV.
--- QM v1.30
---------------
* Origin: Sentry -- Sydney, New South Wales, Australia (3:711/401.0)
|