Jeremy
When you sort a Tstringlist it only allows unique entries! hence your 1600
Regards
Neven
----- Original Message -----
From: Jeremy Coulter <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Thursday, 18 November 1999 08:32
Subject: [DUG]: Sorting - day 2
> Hi all.
>
> I followed alead that suggested I try setting the sorted to true BEFORE I
> load the file in to the TStringList.
> This does speed it up.....BUT instead of there being 38,000 lines, I only
> get 1600 !! figure THAT one out !!
>
> I also did the AddObject thing too, but it actually added time, basically
> cos. I had to read in each line to do the AddObject bit.
> I tried loading the file into another temp TStringlist, then looped
through
> this and did the AddObject bit to another TStringlist, but it made no
diff.
> in time...well maybe a few milliseconds.
>
> Am I just being unrealistic? is 38,000 lines of code processing in roughly
> 10 seconds about right ??
> considering unsorted it takes 2 seconds...
>
> Cheers, Jeremy Coulter
>
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz