Fibonacci and performance

Jeff Sturm jsturm@one-point.com
Sat Apr 28 12:03:00 GMT 2001


On 27 Apr 2001, Tom Tromey wrote:
> Nope, Fib.fib is initializing the Fib class over and over.  I don't
> know if we test for this situation or not, but I assume not.  I guess
> this would only affect recursive calls.

It would affect all calls to methods in the same class, right?  Those are
actually quite common.

Jeff




More information about the Java mailing list