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: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Apr 2005 16:35:21 -0700
Reply-to: bugs@xxxxxxxxxxx

<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.

-jason





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