Complete.Org: Mailing Lists: Archives: freeciv-dev: July 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: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Profiling Civserver again
From: 蔡恆華 <iquin@xxxxxxxxxxxxx>
Date: Tue, 31 Jul 2001 22:26:29 -0400 (EDT)

Seems like the patch inflates mapgen.c from ~61K to ~98K.
Of course, some of the macro definitions don't belong there.
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.

Regards,
I.Q.



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