Re: suggestion: slight optimization for UT_String


Subject: Re: suggestion: slight optimization for UT_String
From: Joaquin Cuenca Abela (cuenca@celium.net)
Date: Mon Mar 19 2001 - 07:32:50 CST


On 19 Mar 2001 12:57:29 +0000, rms@greymalkin.yi.org wrote:
> On Mon, Mar 19, 2001 at 01:48:31PM +0100, Joaquin Cuenca Abela wrote:
> > On 19 Mar 2001 14:04:57 +0400, Vlad Harchev wrote:
> > > Then the following could be used to multiply 'x' by 1.5:
> > > (x + x<<1) >> 1
> > > I will be very fast.
> > uhm, it's not so readable as x = x * 1.5. In addition, if later we
> > decide to change from 1.5 to something else, it becomes harder. And
in
>
> Can we have a sort of middle point here?
>
> x = x * y should be replaced by x *= y

The real line is:

n = priv_max(n, nCurSize * g_nGrowBy);

Cheers,

-- 
Joaquín Cuenca Abela
cuenca@celium.net



This archive was generated by hypermail 2b25 : Mon Mar 19 2001 - 07:34:33 CST