This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
optimize sort by inlining comparison functions
authorTomasz Konojacki <me@xenu.pl>
Mon, 2 Mar 2020 23:45:05 +0000 (00:45 +0100)
committerKarl Williamson <khw@cpan.org>
Mon, 9 Mar 2020 13:55:49 +0000 (07:55 -0600)
commit044d25c73ce10d2b29008b875209d414303ccff7
tree26ad09e5baa999baf53f72a2025f63212943e377
parent433b3e2b7846f8a9c2506397c0b4d1394bf7700d
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
embed.fnc
embed.h
embedvar.h
intrpvar.h
pp_sort.c
proto.h
sv.c