Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] error opening large file
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] error opening large file
> Would it degrade arithmetic performance a lot if 'int' conformed to 64-bit
> arithmetic  on all platforms ?
> (on a 32-bit cpu,  small integers would be unboxed, big integers  would be
> boxed)

I think that the cost of a mixed arithmetic like you outline would be
quite high, say, a factor of 5 or 10 on integer-intensive code.

If you're ready to pay that cost, it might be worth using
arbitrary-precision arithmetic for the "big" integers.

- Xavier Leroy
Bug reports:  FAQ:
To unsubscribe, mail  Archives: