Project

General

Profile

« Previous | Next » 

Revision 1b5acc87

Added by Kenta Murata over 8 years ago

array.c: Improve performance of Array#sort with float elements

  • array.c (sort_2): improve performance of Array#sort with float elements.

  • internal.h (cmp_opt_Float, cmp_opt_data): added for checking whether or not
    Float#<=> can be optimizable.

  • numeric.c (rb_float_cmp): added for internal use.

  • internal.h (rb_float_cmp): ditto.

[Bug #13340]
[ruby-dev:50023]
[Fix GH-1539]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e