At 21:05 +0100 98/09/10, [EMAIL PROTECTED] wrote:
..
>The question is of performance for Int sized things in Integer, so the
>fact that you call a good library isn't relevant; what's important is
>what you do when you don't _need_ to use GMP to get the answer. My
>guess is that most of the real cost of doing Int sized arithmetic in
>Integers is the cost of detecting overflow.
When using Integer there are too big costs: Dynamic memory allocation and
overflow checks. Now with a GC in place, the dynamic allocation cost is not
going be to so high, and so the gain in giving small Integers (of word
size) special treatment may no not so big.
Hans Aberg
* Email: Hans Aberg <mailto:[EMAIL PROTECTED]>
* Home Page: <http://www.matematik.su.se/~haberg/>
* AMS member listing: <http://www.ams.org/cml/>