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

[Freeciv] Re: [Freeciv-Dev] Re: Profiling Civserver again

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Thue <thue@xxxxxxx>
Cc: freeciv@xxxxxxxxxxx
Subject: [Freeciv] Re: [Freeciv-Dev] Re: Profiling Civserver again
From: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Date: Wed, 25 Jul 2001 20:31:21 -0400

At 11:16 AM 01/07/25 +0200, Thue wrote:
>On Wednesday 25 July 2001 10:42, Jason Dorje Short wrote:
>> Jarda Benkovsky wrote:
>> > Jason Dorje Short wrote:
>> >
>> > Just to slow you down a bit - do not overoptimize such things -
>> > maybe freeciv will have more complicated map topology one day and
>> > it would be a pity to add all that now unnecessary code back.
>> >
>> > OTOH, it may be completely useless in that case too, so maybe a
>> > function would be better :)
>>
>> Actually, I was thinking of the *_iterate macros; they should be
>> optimized for the current setup.  However, when I looked at them it
>> appears as though they pretty much are - most of them don't use
>> normalize_map_pos.
>>
>> But, these macros aren't used as much as they could be - and for good
>> reason.  It's dangerous to just substitute them in rampantly, because
>> they don't behave the same way as the current "for" loops.  With a
>> gradual transition to them things should improve.
>>
>> jason
>
>Actually they are used almost as much as they could be.
>
>-Thue

Not really, you have some slightly improved versions which will come
out in the mapgeneration updates that will be posted for review as 
soon as 1.12.0 beta winds down.

They have a lot more applicability :-).

Cheers,
RossW




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