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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12834) amortize()
From: "Brian Dunstan" <bdunstan149@xxxxxxxxx>
Date: Mon, 18 Apr 2005 14:47:03 -0700
Reply-to: bugs@xxxxxxxxxxx

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

I noticed that the amortize() function uses a very
clever, but complicated, algorithm.  The reason
apparently is to save time.  If that is the purpose,
why not use a more transparent, but slower algorithm,
and use it to make a lookup table?  Normal calls to
amorize could just be reading an element from a 20- or
100-element integer array, which would be faster than
what is there now.





                
__________________________________ 
Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12834) amortize(), Brian Dunstan <=