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 /intrpvar.h | |
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 'intrpvar.h')
-rw-r--r-- | intrpvar.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/intrpvar.h b/intrpvar.h index 64e581ab88..b888f0f998 100644 --- a/intrpvar.h +++ b/intrpvar.h @@ -793,8 +793,6 @@ PERLVARI(I, known_layers, PerlIO_list_t *, NULL) PERLVARI(I, def_layerlist, PerlIO_list_t *, NULL) #endif -PERLVAR(I, sort_RealCmp, SVCOMPARE_t) - PERLVARI(I, checkav_save, AV *, NULL) /* save CHECK{}s when compiling */ PERLVARI(I, unitcheckav_save, AV *, NULL) /* save UNITCHECK{}s when compiling */ |