This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Help with performance issues.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]