Performance/Integers
From HaskellWiki
< Performance(Difference between revisions)
BrettGiles (Talk | contribs) (Adding performance infobox for great navigation options.) |
(+cat) |
||
Line 1: | Line 1: | ||
{{Performance infobox}} |
{{Performance infobox}} |
||
+ | [[Category:Performance|Integers]] |
||
==Integers== |
==Integers== |
||
Latest revision as of 11:31, 13 January 2007
Haskell Performance Resource
Constructs: Techniques: |
[edit] 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.