in reply to Re: looking for a Priority Queue
in thread looking for a Priority Queue
C-- perhaps? Let's test my little perl hack....
use Priority; my $q = new Priority; my $time = time; $q->add($_,1) for 1..1000000; $q->pop for 1..1000000; print "Did a million in ",time - $time, " seconds"; __DATA__ Did a million in 32 seconds
That would be 0.032 seconds per thousand....on an old PIII
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: looking for a Priority Queue
by educated_foo (Vicar) on May 07, 2002 at 07:47 UTC | |
by tachyon (Chancellor) on May 07, 2002 at 08:09 UTC | |
by educated_foo (Vicar) on May 07, 2002 at 08:44 UTC | |
by tachyon (Chancellor) on May 07, 2002 at 14:22 UTC | |
by educated_foo (Vicar) on May 07, 2002 at 16:08 UTC |