Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: Profiling Civserver again
Home

[Freeciv-Dev] Re: Profiling Civserver again

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: 蔡恆華 <iquin@xxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Profiling Civserver again
From: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Date: Wed, 01 Aug 2001 10:48:58 -0400

Thanks for the feedback.

At 10:26 PM 01/07/31 -0400, =?BIG5?B?vbKr7bXY?= wrote:
>Seems like the patch inflates mapgen.c from ~61K to ~98K.
>Of course, some of the macro definitions don't belong there.
Yes, they need to get into map.h. But for testing purposes
it was safer and less pervasive to keep them local to mapgen.

>Sometimes, code simplicity is more important than speed.
>Not sure if it is worth going in this extreme for speed.
>Mapgen is only called once per game after all.
>However, there are redundant checks which should have been removed.
>Another thing to consider is memory consumption,
>speeding up the computation at the expense of memory can cause additional
>memory swap which slows down everything even more.
Can you give linenumbers or examples for these?

>Regards,
>I.Q.

Cheers,
RossW



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