Re: [Freeciv-Dev] (PR#12682) AI Ignores Building Effects for Tech. Wants

"Jason Short" <[email protected]> Wed, 30 Nov 2005 17:17:49 -0800
Newsgroups gmane.games.freeciv.ai
Message-ID <[email protected]>
<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