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: Jason Dorje Short <jshort@xxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Profiling Civserver again
From: Thue <thue@xxxxxxx>
Date: Tue, 31 Jul 2001 21:12:12 +0200

> Another point of note is that on each and every call it normalizes
> the map pos, even though for most calls this is already known. 
> Introducing a second function/macro, map_get_normal_tile(x, y) would
> give some savings here (you'd still want to assert that the tile was
> normal), but I don't see an advantage otherwise.

I think the easiest way is to just always use normalized tile coords. I 
think this is already the case in most of the code (I have been 
cleaning it up for some time).

-Thue


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