Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Believably slow..

by pope (Friar)
on Jun 24, 2003 at 11:32 UTC ( #268456=note: print w/replies, xml ) Need Help??

in reply to Unbelievably slow..

C or C++ for this sort of computation is just too fast for Perl. Even Perl can't beat Java in this. The intensive loop in your code reminds me of "sieve of eratosthenes" benchmarks (see the Great Win32 Computer Language Shootout or the original shootout) on which Perl is far away behind Java.

I have tried a bit vector version of it, but still get bad result, so I'm sure the slowness is in the arithmetics. Monks here have played golf on eratosthenes, but I don't know about their attempst on performance hacks.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://268456]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2020-01-21 10:46 GMT
Find Nodes?
    Voting Booth?