Help with performance issues.
Bill Bland
wjb@netpd.com
Tue Jul 31 02:15:00 GMT 2001
Hello again,
Thanks for all the advice - some very interesting suggestions.
The Math.abs problem sounded likely to me, so I defined the following:
static final int abs( int x ) {
if( (0x80000000 & x) == 0 )
return x;
else
return -x;
}
and replaced all the occurrences of Math.abs with the new method.
Unfortunately, while I did get a slight speed-up with this, it wasn't
enough to close the gap between jdk1.3 and gcj in any significant way.
Thanks again for all the suggestions. Any other ideas greatly
appreciated!
Thanks in advance,
William Bland.
More information about the Java
mailing list