From: Nicholas Clark Date: Tue, 19 Dec 2000 19:22:31 +0000 (+0000) Subject: obscure timing knowledge X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=55ada37460e1f7d48d5322c1594b5cc7ccbf3306;p=p5sagit%2Fp5-mst-13.2.git obscure timing knowledge Message-ID: <20001219192231.F2827@plum.flirble.org> p4raw-id: //depot/perl@8207 --- diff --git a/sv.c b/sv.c index fd7d67d..4794596 100644 --- a/sv.c +++ b/sv.c @@ -1320,6 +1320,14 @@ See C. 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, 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 {