John Launchbury  <[EMAIL PROTECTED]>  
asked recently about the Int performance vs Integer one.


In my experience with ghc-2.10 Int was 4-5 times faster than Integer
on the tasks with large amount of integer arithmetic.
Some Haskell, Hugs implementors confirm that this is not an occasion.
Therefore, i often set  Integral i => i  instead of clear Integer. 
For the compiler is expected to specialize this to Int or to Integer
depending on what is needed in the task described in `main'.

Only  ** Int has to break-report on overflow **

- so the user would know when to set  :: Integer rather than Int for
the next compile-run.


------------------
Sergey Mechveliani
[EMAIL PROTECTED]


Reply via email to