Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: Map coordinate cleanups.
Home

[Freeciv-Dev] Re: Map coordinate cleanups.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Map coordinate cleanups.
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Thu, 16 Aug 2001 22:36:27 +0100 (WET DST)

On Thu, 16 Aug 2001, Kevin Brown wrote:
> Jason Dorje Short <jshort@xxxxxxxxxxxxx> wrote:
> > I think any benefit players may get from extra speed is more than
> > negated by the extra work developers have to do to use a macro for these
> > functions.  Thus I agree that there is no _good_ reason to make it a
> > macro.
> > 
> > In summary, I don't think these functions should be made macros. 
> > Efficiency must be balanced with code cleanliness.
> 
> In any case, efficiency is often made up for by Moore's Law, while
> code cleanliness isn't.  :-)

I suggest you delve a bit more in this problem. Function calls don't have 
a habbit of getting much faster. Besides, compilers can't optimize
functions as well as inlined code.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa



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