[Haskell-cafe] why PArr slower than list ?
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Wed Nov 14 22:35:51 EST 2007
On Nov 14, 2007, at 21:50 , Albert Lee wrote:
> dotp :: Num a => [:a:] -> [:a:] -> a
You're forcing Num a => a here, whereas the list one probably
specializes to Integer. Seems like a bad way to go to me;
polymorphism is expensive. (Whether it's *that* expensive, I
couldn't tell you.)
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the Haskell-Cafe
mailing list