diff options
author | Tomasz Konojacki <me@xenu.pl> | 2020-03-03 00:45:05 +0100 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-03-09 07:55:49 -0600 |
commit | 044d25c73ce10d2b29008b875209d414303ccff7 (patch) | |
tree | 26ad09e5baa999baf53f72a2025f63212943e377 /sv.c | |
parent | 433b3e2b7846f8a9c2506397c0b4d1394bf7700d (diff) | |
download | perl-044d25c73ce10d2b29008b875209d414303ccff7.tar.gz |
optimize sort by inlining comparison functions
This makes special-cased forms such as sort { $b <=> $a }
even faster.
Also, since this commit removes PL_sort_RealCmp, it fixes the
issue with nested sort calls mentioned in gh #16129
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -15376,9 +15376,6 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags, /* Recursion stopper for PerlIO_find_layer */ PL_in_load_module = proto_perl->Iin_load_module; - /* sort() routine */ - PL_sort_RealCmp = proto_perl->Isort_RealCmp; - /* Not really needed/useful since the reenrant_retint is "volatile", * but do it for consistency's sake. */ PL_reentrant_retint = proto_perl->Ireentrant_retint; |