[EMAIL PROTECTED] (S.D.Mechveliani) writes:
> Observation:
>
> In ghc-2.08 (linux, PC-486), -O compilation
>
> "Integer is 5 times slower than Int" - even when the numbers
> are small ( < 2^20 ).
This is reasonable, considering that each integer operation involves a
function call to the arbitrary precision arithmetic library, whereas
Int operations are inlined. Integers are always boxed, whereas Ints
might be unboxed between calculations, or as a result of strictness
analysis.
Cheers,
Simon
--
Simon Marlow [EMAIL PROTECTED]
University of Glasgow http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key