diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-10-18 17:15:16 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-10-18 17:15:16 +0000 |
commit | 9ff8e8065ea8557fda504cf7c2337bef185cd00f (patch) | |
tree | f580ff4e8abf589144e19925a9032dadbe6cec41 /toke.c | |
parent | 5e0ab564a19e208af30e5d05d5a03aae32025de6 (diff) | |
download | perl-9ff8e8065ea8557fda504cf7c2337bef185cd00f.tar.gz |
Change newSVpv() to newSVpvn() where we know the length is non-zero, as
newSVpvn() will be fractionally more efficient.
p4raw-id: //depot/perl@32135
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5346,7 +5346,7 @@ Perl_yylex(pTHX) #ifdef PERL_MAD if (PL_madskills && !PL_thistoken) { char *start = SvPVX(PL_linestr) + PL_realtokenstart; - PL_thistoken = newSVpv(start,s - start); + PL_thistoken = newSVpvn(start,s - start); PL_realtokenstart = s - SvPVX(PL_linestr); } #endif |