From: Nicholas Clark Date: Mon, 6 Feb 2006 20:12:58 +0000 (+0000) Subject: I think that "merge Perl_sv_2[inpu]v" and "reduce duplication in X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2c4e3d5f2923e4800b186420d39202e45c831e51;p=p5sagit%2Fp5-mst-13.2.git I think that "merge Perl_sv_2[inpu]v" and "reduce duplication in sv_setsv_flags" are about as done as they can be. p4raw-id: //depot/perl@27110 --- diff --git a/pod/perltodo.pod b/pod/perltodo.pod index 2be4e68..45cf4e3 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -367,18 +367,6 @@ anyone feeling like exercising their skill with coverage and profiling tools might want to determine what ops I are the most commonly used. And in turn suggest evictions and promotions to achieve a better F. -=head2 reduce duplication in sv_setsv_flags - -C has a comment -C - -Whilst this was true 10 years ago, the growing disparity between RAM and CPU -speeds mean that the trade offs have changed. In addition, the duplicate code -adds to the maintenance burden. It would be good to see how much of the -redundancy can be pruned, particular in the less common paths. (Profiling -tools at the ready...). For example, why does the test for -"Can't redefine active sort subroutine" need to occur in two places? - @@ -399,16 +387,6 @@ and Cs have recently been shrunk considerably. It's probable that the same approach would find savings in Cs and Cs, if not all the other larger-than-C types. -=head2 merge Perl_sv_2[inpu]v - -There's a lot of code shared between C, -C, C, and C. It would be -interesting to see if some of it can be merged into common shared static -functions. In particular, C started out as a cut&paste -from C around 5.005_50 time, and it may be possible to -replace both with a single function that returns a value or union which is -split out by the macros in F - =head2 UTF8 caching code The string position/offset cache is not optional. It should be.