> From: Christopher Schultz [mailto:[email protected]] 
> Subject: Re: svn commit: r1579262 - in /tomcat/tc6.0.x/trunk:
> STATUS.txt java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
> webapps/docs/changelog.xml

> Bit-shifting is more than marginally faster than multiplication.

Not so much on modern CPUs.

> If the compiler is good, it will notice multiplication against a
> static power of two and make the switch for you. I'm not sure if
> the Java compiler is that smart.

It is.

 - Chuck




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to