develooper Front page | perl.perl5.porters | Postings from December 2000

Re: pp_add -> pp_i_add efficiency hack?

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
December 3, 2000 16:08
Subject:
Re: pp_add -> pp_i_add efficiency hack?
Message ID:
20001203180841.A3960@chaos.wustl.edu
On Sun, Dec 03, 2000 at 11:01:39PM +0000, Simon Cozens wrote:
> On Sun, Dec 03, 2000 at 09:47:59PM +0000, Nicholas Clark wrote:
> > Well, it would be if I sent it. I'm tired and making mistakes now.
> 
> Without the patch:
> u=2.31  s=0.38  cu=134.63  cs=11.73  scripts=261  tests=15242
> 
> With the patch:
> u=2.32  s=0.3  cu=135.14  cs=11.67  scripts=261  tests=15242
> 
> Was it really worth it?

IIRC the "efficiency" comes into play in one of Nicholas' platforms
(ARM Linux?) where double math is really, *really*, slow, and staying
with integers if at all possible really pays off.

There's also the 'correctness' aspect.  If NVs smear your low order
bits when you need need them you might get fussy about it.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About