Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] [Patch] Improve performance
Home

[Freeciv-Dev] [Patch] Improve performance

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [Patch] Improve performance
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Feb 2002 22:43:18 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

Avoid to compute the values twice in ai_find_elvis_pos. Remove a
method call for worst_elvis_tile.

Cache results of num_known_tech_with_flag.

Add a IS_BORDER_MAP_POS to road_bonus.

Remove tech_exists check from get_invention. update_research takes
care that tech which doesn't exists are UNKNOWN.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Many of my assistants were fans of Tolkien, who wrote 'Lord of the Rings'
  and a number of other children's stories for adults.  The first character
  alphabet that was programmed for my plotter was Elvish rather than Latin."
    -- from SAIs "life as a computer for a quarter of a century"

Attachment: perf1.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] [Patch] Improve performance, Raimar Falke <=