Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player b
Home

[Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player b

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Thue Janus Kristensen <thue@xxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: somebody fix struct *player! (was: FoW remove player bug)
From: Mika Korhonen <mikak@xxxxxxxxxxxx>
Date: Wed, 17 May 2000 17:23:32 +0300 (EET DST)

On Wed, 17 May 2000, Thue Janus Kristensen wrote:

>But if dereferncing means that it has to load the player struct into
>cache it makes a bigger difference.
>The pathfinding takes a long time because it checks a large number of
>tiles. In each of these checks a part is accesing these bitvectors, so I
>would think it could make a difference.
>
>Btw; maybe these oneilne functions like map_get_know() should be made into
>macros to avoid the overhead of a function call; is the saving worth it?
>Is there any reason not to?

Or what about making them inline which is effectively the same thing?
(Don't some compilers with sufficient flags already do that for short
functions, do they?)

        Mika    
_______________________________________________________________________________
But Captain -- the engines can't take this much longer!




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