On Sat, 26 May 2012 04:03:29 +0000, Bob Babcock wrote:
>It might be interesting to test your sort with different number of files to
>see if the time is proportional to n^2, nlog(n),... n^2 would indicate
>that SyStemSort is using a bad algorithm.
Whatever it is, it hates a stem that's already sorted but loves one
sorted in two halves:
>say f.0
>9059
> ........................................... rexxtry.rex on WindowsNT
>call time 'R';call sysstemsort 'F.';say time('E')
>0.016000
> ........................................... rexxtry.rex on WindowsNT
>call time 'R';call sysstemsort 'F.';say time('E')
>0.656000
> ........................................... rexxtry.rex on WindowsNT
>call sysstemcopy 'F.','F.',1,9060
> ........................................... rexxtry.rex on WindowsNT
>say f.0
>18118
> ........................................... rexxtry.rex on WindowsNT
>call time 'R';call sysstemsort 'F.';say time('E')
>0.031000
> ........................................... rexxtry.rex on WindowsNT
>call time 'R';call sysstemsort 'F.';say time('E')
>2.750000
> ........................................... rexxtry.rex on WindowsNT
>call time 'R';call sysstemsort 'F.',,,,,2;say time('E')
>0.609000
> ........................................... rexxtry.rex on WindowsNT
>call time 'R';call sysstemsort 'F.';say time('E')
>0.375000
> ........................................... rexxtry.rex on WindowsNT
Double it again and it takes almost 30 seconds. This would easily
explain Swifty's 90 minutes if his list started out already sorted or
nearly so. Steve, try sorting the same list on the times first and then
on the dates and I bet it'll take a few seconds.
ŹR
http://users.bestweb.net/~notr/hassel.html
The worst thing that can happen is, tasty olives. --Stevven