[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]
<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
> 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?