Issue #252 has been updated by Vladimir Sizikov.


This seems to be a common performance trick in MRI, esp. for Fixnums and Strings.

Looking at array.c (sort_2), indeed Fixnums and Strings are special-cased.

I also checked JRuby, and JRuby follows what MRI does (and this does improve performance for Fixnum and String arrays).
----------------------------------------
http://redmine.ruby-lang.org/issues/show/252

----------------------------------------
http://redmine.ruby-lang.org