[Freeciv-Dev] Re: Profiling Freeciv.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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.
- [Freeciv-Dev] Profiling Freeciv., Gaute B Strokkenes, 2001/01/04
- [Freeciv-Dev] Re: Profiling Freeciv., Thue, 2001/01/04
- [Freeciv-Dev] Re: Profiling Freeciv.,
Tony Stuckey <=
- [Freeciv-Dev] Re: Profiling Freeciv., Falk Hueffner, 2001/01/05
- [Freeciv-Dev] Re: Profiling Freeciv., Gaute B Strokkenes, 2001/01/05
- [Freeciv-Dev] Re: Profiling Freeciv., Thue, 2001/01/06
- [Freeciv-Dev] Re: Profiling Freeciv., Gaute B Strokkenes, 2001/01/06
- [Freeciv-Dev] Re: Profiling Freeciv., Falk Hueffner, 2001/01/06
[Freeciv-Dev] Re: Profiling Freeciv., Gaute B Strokkenes, 2001/01/05
|
|