summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorTomasz Konojacki <me@xenu.pl>2020-03-03 00:45:05 +0100
committerKarl Williamson <khw@cpan.org>2020-03-09 07:55:49 -0600
commit044d25c73ce10d2b29008b875209d414303ccff7 (patch)
tree26ad09e5baa999baf53f72a2025f63212943e377 /sv.c
parent433b3e2b7846f8a9c2506397c0b4d1394bf7700d (diff)
downloadperl-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.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sv.c b/sv.c
index bcf2dead01..1c0cc743d0 100644
--- a/sv.c
+++ b/sv.c
@@ -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;