[Haskell-beginners] Integer performance of GHC

Brandon S Allbery KF8NH allbery at ece.cmu.edu
Sat Aug 7 00:09:22 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/6/10 23:32 , Sebastián E. Peyrott wrote:
> Do you have any insights on this? Is it reasonable to expect Haskell
> integer performance to reach the levels of C with current
> implementations? Which are the limiting factors?

Integer, or Int?  In theory Integer should use Int when possible under the
covers, but that may not always do what you expect --- and Integer, being
arbitrary precision, will never be as fast as native Int math.

- -- 
brandon s. allbery     [linux,solaris,freebsd,perl]      allbery at kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university      KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxc3HIACgkQIn7hlCsL25VWIgCePL5sZCEL87WWoVQXJIUlgC1d
PUwAmQEqtanpLJHa7amkz7GP9qH5rkBg
=SoCp
-----END PGP SIGNATURE-----


More information about the Beginners mailing list