From: Ted Rolle Date: 2003-05-22T08:22:47+09:00 Subject: Re: Speed Kata: pure-Ruby powmod What about profiling it? The ol' 20%-of-the-code-does-80%-of-the-work thesis. Putting it into bignum.c is arguably the best way. I don't believe assembler would buy anything because the main time spent would be in the bignum.c library. Ted