Fibonacci and performance

Anthony Green green@redhat.com
Tue May 1 22:10:00 GMT 2001


Jeff wrote:
> That could be a problem.  It would be fine if m_l_f were initialized to
> zero.

The original implementation had it initialized to zero.  Tom added what
seemed like a good optimization at the time (initialization from the Class
object).  Is it true that all we need to do is to introduce some kind of
re-ordering barrier so that neither the compiler nor the hardware would
reorder these instructions?

AG



More information about the Java mailing list