blackwinter/rb-gsl — pull request #8 by vesselinv (2014-12-14 06:32:42+00:00)
Title: Optimize and extract multiplication and division operations on Fixnum an...

- Directly return the original method call if argument is a Numeric: when performing millions of multiplication/division operations on Fixnum/Float, the many `Kernel#kind_of?` calls slow down performance dramatically.
- Replaced `#kind_of?` with `#is_a?`: benchmarking the two proves that the latter is slightly faster
- Extracted method definitions in a module