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]
Other format: [Raw text]

Re: about non-compatible optimization (was: Re: patch to bring java vtables closer to g++ abi conformance)



----- Original Message -----
From: <shudo@computer.org>
To: <java@gcc.gnu.org>
Sent: Saturday, January 26, 2002 8:30 AM
Subject: Re: about non-compatible optimization (was: Re: patch to bring java
vtables closer to g++ abi conformance)

> I measured the time taken to invoke a method 10,000,000
> times for GCJ.  Java source files attached to this mail
> are compiled with -O option and executed on a 600 MHz
> Pentium III PC.
>
>   invokevirtual:   234  (faster than invokestatic)
>   invokespecial:    68
>   invokeinterface: 554
>   invokestatic:    319
>     (msec)

the same object or different objects? if they cause l2 cache misses? then
again, the object will most probably need to be accessed anyway.

how can invokestatic be slower? didn't it get inlined or what? (iirc,
private, static and final can be inlined if they are in the same library or
compilation unit)


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