Try either a Binary or Ternary search or a simple hash algorithm.

-----Original Message-----
From: Alistair George [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 15 October 2002 1:03 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: To CASE or not?


Hi all.
I am writing a backup routine which includes or excludes bunches of
files/folders.
For example, during the backup process the compressor must be told which
file
types to exclude.
My concern is that if this bunch of types is numerous that the
processing/parsing could be quite resource intensive.

Any suggestions to achieve this would be appreciated. My own feeling is to
run
with a dynamic CASE statement, but even this would seem to take a pretty big
chunk of processing time given each file is parsed?
Thanks,
Alistair George+

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to