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.


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.


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