Help with performance issues.

Andrew Haley aph@cambridge.redhat.com
Mon Jul 30 09:52:00 GMT 2001


Tom Tromey writes:
 > >>>>> "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.
Yeah.
All this falls down, though, when we need to inline a *native* method.
That would be a good trick...
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /