Re: suggestion: slight optimization for UT_String


Subject: Re: suggestion: slight optimization for UT_String
rms@greymalkin.yi.org
Date: Mon Mar 19 2001 - 06:57:29 CST


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

Hugs, rms



This archive was generated by hypermail 2b25 : Mon Mar 19 2001 - 06:53:42 CST