Performance/Integers

From HaskellWiki
< Performance
Revision as of 06:46, 17 February 2006 by DonStewart (talk | contribs) (Some performance comments on Integers)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Integers

Int (the machine word-sized integer type) is faster than the arbitrary precision Integer type. So don't use Integer in critical places, like inner loops.

That being said, Haskell (or at least GHC's) Integer are very fast, as far as arbitrary precision arithmetic goes.