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: Thue <thue@xxxxxxx>
Cc: Gaute B Strokkenes <gs234@xxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Profiling Freeciv.
From: Tony Stuckey <stuckey@xxxxxxxxxxxxxxxxx>
Date: Thu, 4 Jan 2001 15:07:11 -0600

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.

        Other compilers may have smarter optimizers, but this is still
likely to be worthwhile.
-- 
Anthony J. Stuckey                              stuckey@xxxxxxxxxxxxxxxxx
"And they said work hard, and die suddenly, because it's fun."
        -Robyn Hitchcock.



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