Revert part of the change to gv_fullname4(), as the change seems to
Nicholas Clark [Tue, 7 Dec 2004 15:27:09 +0000 (15:27 +0000)]
be fractionally slower. Re-investigation prompted by a comment from
Tim Bunce, who seems to be more on the ball than I am.

p4raw-id: //depot/perl@23623

gv.c

diff --git a/gv.c b/gv.c
index 7f630d9..937e0d6 100644 (file)
--- a/gv.c
+++ b/gv.c
@@ -1093,7 +1093,8 @@ Perl_gv_fullname4(pTHX_ SV *sv, GV *gv, const char *prefix, bool keepmain)
        name = "__ANON__";
        
     if (keepmain || strNE(name, "main")) {
-       Perl_sv_catpvf(aTHX_ sv,"%s::", name);
+       sv_catpv(sv,name);
+       sv_catpvn(sv,"::", 2);
     }
     sv_catpvn(sv,GvNAME(gv),GvNAMELEN(gv));
 }