Hans Aberg <[EMAIL PROTECTED]> writes:
> The real difficulty to upper the Integer/Int ratio of 4.5 for integers
> fitting into a word is to minimize those overflow checks. So this part
> should be written in assembler, I think.
I don't think the overflow checks will be particularly expensive.
After all, it's just a test/branch sequence, with the branch not taken
in the common case. This is dwarfed by the costs of boxing/unboxing,
heap checks, and testing whether each object is a small or large
integer. Some of these costs can be eliminated during sequences of
operations by inlining the operations and applying transformations in
the same way that we do for Ints currently.
Cheers,
Simon
--
Simon Marlow [EMAIL PROTECTED]
University of Glasgow http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key