Sorting a TOrdCollection

James M White (jmw@c3serve.c3.lanl.gov)
Wed, 21 May 1997 08:05:48 -0600 (MDT)


Greetings,
I have a TOrdCollection of TObjStrings that I want to sort. I
used the Sort() method in the TOrdCollection class but it seems VERY
slow. It took about 400 CPU second on a Dec Alpha to sort a
TOrdCollection containing 22,000 TObjStrings. This seems to take
longer than it should and I eventually will need to sort a
TOrdCollection with over 1,000,000 TObjStrings. Am I doing something
wrong? Is there a way to speed it up?
Jim

-- 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Jim White                                     505-667-0398
Los Alamos National Laboratory          (FAX) 505-665-5220
MS B-265
Los Alamos, NM 87545
jmw@lanl.gov        http://www.c3.lanl.gov/~jmw/info.shtml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++