summaryrefslogtreecommitdiff
path: root/embedvar.h
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 /embedvar.h
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 'embedvar.h')
-rw-r--r--embedvar.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/embedvar.h b/embedvar.h
index ce6ec27cba..dff0af64d4 100644
--- a/embedvar.h
+++ b/embedvar.h
@@ -296,7 +296,6 @@
#define PL_sighandlerp (vTHX->Isighandlerp)
#define PL_signalhook (vTHX->Isignalhook)
#define PL_signals (vTHX->Isignals)
-#define PL_sort_RealCmp (vTHX->Isort_RealCmp)
#define PL_sortcop (vTHX->Isortcop)
#define PL_sortstash (vTHX->Isortstash)
#define PL_splitstr (vTHX->Isplitstr)