This is the mail archive of the java-patches@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]
Other format: [Raw text]

Re: [PATCH] speed up java.util.Random


Paolo Bonzini writes:

 > 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
 > 
 >          * java/util/Random.java: Rewrite, inlining the next(int) method
 >          and synchronization blocks into the callers.
 > 

I'm unhappy about this patch.

gcj is capable of inlining methods that are declared final or private.
Rather than inlining by hand, it makes far more sense to extract the
common code and compile with -O3.

The problem is that the gcj configury is (for me) hard to understand.
I'll leve it to Tom Tromey to suggest how we enable the use of -O3 on
this file.

Andrew.


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