[Freeciv-Dev] Re: (PR#12834) amortize()
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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
- [Freeciv-Dev] Re: (PR#12834) amortize(), Jason Short, 2005/04/18
- [Freeciv-Dev] Re: (PR#12834) amortize(), Per I. Mathisen, 2005/04/18
- [Freeciv-Dev] Re: (PR#12834) amortize(), Brian Dunstan, 2005/04/18
- [Freeciv-Dev] Re: (PR#12834) amortize(), Brian Dunstan, 2005/04/18
- [Freeciv-Dev] Re: (PR#12834) amortize(), Jason Short, 2005/04/18
- [Freeciv-Dev] Re: (PR#12834) amortize(),
Vasco Alexandre da Silva Costa <=
- [Freeciv-Dev] Re: (PR#12834) amortize(), Benoit Hudson, 2005/04/18
- [Freeciv-Dev] Re: (PR#12834) amortize(), Jason Short, 2005/04/18
- [Freeciv-Dev] Re: (PR#12834) amortize(), Brian Dunstan, 2005/04/18
- [Freeciv-Dev] Re: (PR#12834) amortize(), Jason Short, 2005/04/18
- [Freeciv-Dev] Re: (PR#12834) amortize(), Vasco Alexandre da Silva Costa, 2005/04/19
|
|