diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-02-13 11:08:38 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-02-13 11:38:02 +0100 |
| commit | 9826047f01230780c0e64072fa03a7a4aecba63c (patch) | |
| tree | 45a164a6b91f2a369ac89b336a8e95e36baa0ad8 /test/ruby/test_stack.rb | |
| parent | 4a67ef09ccd703047552b740431cfe15e32451f4 (diff) | |
Array#sort_by! return early if sorting is useless
`Array#sort!` does that check, but `#sort_by!` always tries to
sort, which is wasteful.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12741
Diffstat (limited to 'test/ruby/test_stack.rb')
0 files changed, 0 insertions, 0 deletions
