Performance/Integers
< Performance
Jump to navigation
Jump to search
Revision as of 19:05, 17 February 2006 by BrettGiles (talk | contribs) (Adding performance infobox for great navigation options.)
Haskell Performance Resource
Constructs: Techniques: |
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, the Haskell (or at least GHC's) implementation of Integer is very fast, as far as arbitrary precision arithmetic goes.