Help with performance issues.
Tom Tromey
tromey@redhat.com
Mon Jul 30 09:08:00 GMT 2001
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
Anthony> It seems like gcj should be able to replace Math.abs() with
Anthony> __builtin_abs in this case. Does anybody think otherwise?
I think we could consider doing this for any final method with fixed
semantics. For instance, anything in java.lang.Math (taking strictfp
concerns into account, of course). If other final methods are
important for performance, we could inline those too. For instance,
there might be situations where inlining System.arraycopy makes sense.
Implementing this probably wouldn't be very hard. It would make a
nice project for someone wanting to do some gcj front-end hacking.
Tom
More information about the Java
mailing list