Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12834) amortize()
Home

[Freeciv-Dev] Re: (PR#12834) amortize()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bdunstan149@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12834) amortize()
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Mon, 18 Apr 2005 17:03:18 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12834 >

On Mon, 18 Apr 2005, Jason Short wrote:

> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=12834 >
>
> Brian Dunstan wrote:
>
> > So in this situation, part of the end of turn AI
> > calculations would be to determine the interest rate
> > using some simple method for now.  A table could be
> > calculated then, and amortize() would use that table.
>
> More or less.  Except:
>
> - The patch probably already has code to determine the interest rate
> (which can be copied into a new patch).
>
> - A table is probably not needed.  Ammortize isn't a big CPU user.
> Premature optimization is counterproductive.

Yes. Do not blindly worship the Little Tin God!

As the prophet Knuth spoke: "Premature optimization is the root of all
evil".

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa





[Prev in Thread] Current Thread [Next in Thread]