In perl.git, the branch smueller/sort has been created
<http://perl5.git.perl.org/perl.git/commitdiff/9ecb225bedb0d4aac6d797b504eca9b74340fede?hp=0000000000000000000000000000000000000000>
at 9ecb225bedb0d4aac6d797b504eca9b74340fede (commit)
- Log -----------------------------------------------------------------
commit 9ecb225bedb0d4aac6d797b504eca9b74340fede
Author: Steffen Mueller <[email protected]>
Date: Thu Nov 17 18:52:27 2011 +0100
FIXME can't go into blead like this
Minor cleanup in pp_sort to move some verbatim-copied code into
a macro. Not MUCH better since we're still paying the price for the
actual code duplication, but at least a little less code.
M embed.fnc
M embed.h
M pp_sort.c
M proto.h
commit ffd8c882cefc14597a0e4442c2fe4d3a9171931a
Author: Steffen Mueller <[email protected]>
Date: Thu Nov 17 14:11:07 2011 +0100
FIXME this can't go into blead as is
Start implementing the special-purpose sort functions that do
array-dereferencing. This implements:
{ $a->[0] <=> $b->[0] }
for both general numeric and integer sorts. It supports magic on the
inner SVs, but not yet on the array refs ($a, $b).
M embed.fnc
M embed.h
M op.c
M pp_sort.c
M proto.h
commit 4360b033ffe416d946a15bdeeb6a9b67e4b52935
Author: Steffen Mueller <[email protected]>
Date: Fri Nov 18 08:08:11 2011 +0100
Some tests for the sort deref optimization
Specifically in the context of overloading.
Several tests still fail.
M t/op/sort.t
commit c531317f1639468800a2cfe867b15baed23d075a
Author: Steffen Mueller <[email protected]>
Date: Tue Nov 15 18:51:15 2011 +0100
FIXME this can't go into blead as is
This implements detection of a basic Schwartzian transform-style sort
block and removes it from the OP tree. It sets a new flag on the sort OP
which will indicate that this sort needs to be performed by one of the
special-case optimized C functions in pp_sort. The actual implementation
of that function is pending.
M embed.fnc
M embed.h
M op.c
M op.h
M proto.h
commit ad0d661cbdf464b07dc9f602f47ea7ddc0695dde
Author: Steffen Mueller <[email protected]>
Date: Mon Nov 14 20:50:41 2011 +0100
Rename variable for clarity
M op.c
-----------------------------------------------------------------------
--
Perl5 Master Repository