Computer Language Shootout - concurrency
Sat Dec 3 13:38:09 CET 2005
--- "Ulf Wiger (AL/EAB)" <>
> If there were is_smallint/1 guards, the compiler
> could probably speed this up significantly.
> It would still have to check for bignum results,
> of course.
Yes, in principle it could. A sufficiently smart
compiler (similar to SELF-91) could even clone two
copies of the code, stay in the fixnum version
normally, and jump to the general version on overflow.
Start your day with Yahoo! - Make it your home page!
More information about the erlang-questions