"Alex Hart" <> wrote:
> > Most people wouldn't consider 20,000 items to be a "very large list."
> > I'd suggest first just trying the brute-force approach of reading
> them
> > into an array, sorting them, and taking the last 50 results. Only if
>
> I'm developing a real-time application, and a particular sort was
> taking several minutes when the list got up to 20,000.
That is definitely pathological.
> It might be a
> problem with the data being too ordered to start with (or does per
> shuffle before it sorts?).
Depends on the version. Which version are you using?
> I'll try some of the suggestions here, and I'll be sure to benchmark
> along the way.
Unfortunately, benchmarking is extremely difficult in cases where there are
unknown and unpredictable pathological patterns in the data. Be careful.
Xho
--
--------------------
http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB