Complete.Org: Mailing Lists: Archives: freeciv-ai: November 2005:
[freeciv-ai] Re: [Freeciv-Dev] (PR#12682) AI Ignores Building Effects fo
Home

[freeciv-ai] Re: [Freeciv-Dev] (PR#12682) AI Ignores Building Effects fo

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: badamson@xxxxxxxxxxx
Subject: [freeciv-ai] Re: [Freeciv-Dev] (PR#12682) AI Ignores Building Effects for Tech. Wants
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Nov 2005 17:17:49 -0800
Reply-to: bugs@xxxxxxxxxxx

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

Benedict Adamson wrote:

> As a first step in investigating this, I decided to profile the code. I 
> made a simple modification (see the attached patch) to extract the 
> current improvement evaluation code into its own function, then ran with 
> an autogame (also attached).
> 
> The profile showed that the improvement evaluation code 
> (adjust_building_wants_by_effects) consumed only 0.3% of the CPU time 
> (including the cost of functions directly or indirectly called by 
> adjust_building_wants_by_effects).
> 
> It seems that the current code is not so slow. Or am I looking in the 
> wrong place?

Can you post the profile?  Did you make it with gprof or oprofile or 
some other tool?

-jason





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