Fibonacci and performance

Anthony Green green@redhat.com
Fri Apr 27 07:43:00 GMT 2001


Tom wrote:
> Looking at the generated assembly, the only real difference I see is
> the call to _Jv_InitClass in Fib.fib(). In this particular case we're
> paying a pretty big penalty.
>> I wonder if inlining the "already initialized" check from
> _Jv_InitClass would help or hurt (due to increased code size).

If the assembly code really is similar, we can test this theory by simply
adding _Jv_InitClass-like calls or inlined equivalent to the C++ code.
AG


More information about the Java mailing list

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