Eric Hodel wrote:
>>
>>   You forget function lookup: there is three function lookup for this
>> code. Hardcoded in C is way faster (with only one function lookup).
> 
> So you've benchmarked it and found that calling Numeric#sign takes up a
> significant part of your runtime?

  No ;-) I just point out that a C implementation will be faster than a
pure Ruby one. Then, if you rely heavily on it, well, it would count,
wouldn't it ?

  But I mainly raised the point to provoke, I obviously got what I
wanted, didn't I ;-)

> Note that you can write this in C for about 5 extra lines using
RubyInline.

  That definitely is a good idea !

  Cheers,

	Vince

-- 
Vincent Fourmond, PhD student
http://vincent.fourmond.neuf.fr/