This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Help with performance issues.
- To: java at gcc dot gnu dot org
- Subject: Re: Help with performance issues.
- From: Bill Bland <wjb at netpd dot com>
- Date: Tue, 31 Jul 2001 10:21:01 +0100 (BST)
- Reply-To: wjb at netpd dot com
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.