using ruby 1.9.2p290 (2011-07-09 version 32553) [x86_64-linux]
I did a lot of profiling, and it seems to me that Ruby Fixnum propagation is very slow.
After some profiling, I found out that this is (partially), because every call to Fixnum # * includes 6 calls to the core # kind_of .
I know that you can write C extensions, but these multiplications spread throughout the code. So, is there anyway to avoid this overhead inside Ruby?
thank
source
share