[Freeciv-Dev] Re: (PR#7278) Profile of current cvs server
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7278 >
On Wed, Jan 21, 2004 at 08:37:57AM -0800, Per I. Mathisen wrote:
>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7278 >
>
> On Wed, 21 Jan 2004, Arnstein Lindgard wrote:
> > Flat profile:
> >
> > Each sample counts as 0.01 seconds.
> > % cumulative self self total
> > time seconds seconds calls ms/call ms/call name
> > 10.24 39.70 39.70 128057 0.31 0.48 really_generate_warmap
> > 5.13 59.57 19.87 565654258 0.00 0.00 map_get_tile
> > 3.19 71.93 12.36 207203968 0.00 0.00 base_city_map_to_map
>
> Don't look to hard on this table. As the rest of the profile no doubt will
> show you, it is certain AI functions which consumes CPU power in the
> server. A very large number of very small improvements is much less useful
> than a few well-placed optimizations of key algorithms.
Fully ack. Decreasing the number of really_generate_warmap calls is a
good goal.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"The primary purpose of the DATA statement is to give names to
constants; instead of referring to pi as 3.141592653589793 at every
appearance, the variable PI can be given that value with a DATA
statement and used instead of the longer form of the constant. This
also simplifies modifying the program, should the value of pi
change."
-- FORTRAN manual for Xerox Computers
|
|