Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7280) Tile pointer in unit struct
Home

[Freeciv-Dev] Re: (PR#7280) Tile pointer in unit struct

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: a-l@xxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7280) Tile pointer in unit struct
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Tue, 27 Jan 2004 04:24:22 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7280 >

On Mon, Jan 26, 2004 at 11:12:29PM -0800, Jason Short wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7280 >
> 
> > [i-freeciv-lists@xxxxxxxxxxxxx - Wed Jan 21 08:08:24 2004]:
> 
> > The last point could be solved by having functions/macros like:
> > 
> >   unit_tile(punit)
> >   unit_tile_city(punit)
> > 
> > which than use or don't use a cached tile pointer. So what about a
> > single new function/macro unit_tile(punit) and than writing
> > unit_tile(punit)->city?
> 
> But since this whole argument is about speed

It isn't. At least Arnstein's original intentions were to have less to
write. I don't think you can gain much speed from storing the tile
pointer in the unit struct.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 A life? Cool! Where can I download one?




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