diff options
author | Nicholas Clark <nick@ccl4.org> | 2000-12-19 19:22:31 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-12-20 03:54:08 +0000 |
commit | 55ada37460e1f7d48d5322c1594b5cc7ccbf3306 (patch) | |
tree | e888571765440a0ca147e60921a8222dcd8747dd /sv.c | |
parent | e57fe1aa2a4637b4d2cd478e540c6c96a8440d03 (diff) | |
download | perl-55ada37460e1f7d48d5322c1594b5cc7ccbf3306.tar.gz |
obscure timing knowledge
Message-ID: <20001219192231.F2827@plum.flirble.org>
p4raw-id: //depot/perl@8207
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1320,6 +1320,14 @@ See C<sv_setuv_mg>. void Perl_sv_setuv(pTHX_ register SV *sv, UV u) { + /* With these two if statements: + u=1.49 s=0.52 cu=72.49 cs=10.64 scripts=270 tests=20865 + + without + u=1.35 s=0.47 cu=73.45 cs=11.43 scripts=270 tests=20865 + + If you wish to remove them, please benchmark to see what the effect is + */ if (u <= (UV)IV_MAX) { sv_setiv(sv, (IV)u); return; @@ -1340,6 +1348,14 @@ Like C<sv_setuv>, but also handles 'set' magic. void Perl_sv_setuv_mg(pTHX_ register SV *sv, UV u) { + /* With these two if statements: + u=1.49 s=0.52 cu=72.49 cs=10.64 scripts=270 tests=20865 + + without + u=1.35 s=0.47 cu=73.45 cs=11.43 scripts=270 tests=20865 + + If you wish to remove them, please benchmark to see what the effect is + */ if (u <= (UV)IV_MAX) { sv_setiv(sv, (IV)u); } else { |