Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] Re: (PR#2370) Path finding
Home

[Freeciv-Dev] Re: (PR#2370) Path finding

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] Re: (PR#2370) Path finding
From: "Raimar Falke via RT" <rt@xxxxxxxxxxxxxx>
Date: Sun, 24 Nov 2002 12:16:09 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Sun, Nov 24, 2002 at 12:05:11PM -0800, Gregory Berkolaiko via RT wrote:
> > > > Fourth: how general/special do we want the queue implementation. If we
> > > > for example typedef that the queue works on shorts (16bit, less
> > > > memory) instead of void pointers or int we can get some speed. However
> > > > this makes the queue not general. Also critical (see point 1) is the
> > > > inlining of the queue functions.
> > > 
> > > I don't believe memory use by queue is significant.  There is also 
> > > another 
> > > customer for this queue, airgoto.c, but it also uses ints (can be shorts) 
> > > right now.
> > 
> > Inlining of queue functions?
> 
> Yes, it introduces speedup, about 5%

Hehe. I got you ;). Inlining the queue functions via macros is dead
ugly.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  Microsoft does have a year 2000 problem. I'm part of it. I'm running Linux.



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