Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] Re: Profiling Freeciv.
Home

[Freeciv-Dev] Re: Profiling Freeciv.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Profiling Freeciv.
From: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: 05 Jan 2001 00:55:08 +0100

Tony Stuckey <stuckey@xxxxxxxxxxxxxxxxx> writes:

> On Thu, Jan 04, 2001 at 08:20:15PM +0100, Thue wrote:
> > Converting small functions into macros is ok, but generelly optimizations 
> > don't have to be very ugly before I don't think it is justified for 
> > performance IMO. Most people have a better processor than a 4x68.
> > (and those people who do have a 4x86 shouldn't play 15 AI games on 160x90 
> > maps). On your system an AI turn took15 minutes, on my celeron 400 it took 
> > 1 
> > minute. And people will continue to get faster systems.
> 
>       One major adavantage of macro conversion is that GCC doesn't do
> cross-procedural optimization, nor cross-source-file inlining of small
> functions.  Making "one-line" simple functions macros instead removes both
> of these restrictions.

Putting these "one-liners" marked as inline into header files has
exactly the same effect, without the dangerous semantic traps of
macros.

        Falk




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