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

[Freeciv-Dev] Re: Profiling Civserver again

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Profiling Civserver again
From: Lino Mastrodomenico <mastro@xxxxxxxxxx>
Date: Fri, 3 Aug 2001 10:33:33 +0200

Paul Zastoupil wrote:
> On Fri, Aug 03, 2001 at 02:07:11AM +0200, Gaute B Strokkenes wrote:
> > Paul, could you try this?
>
> http://civserver.freeciv.org/~paulz/gprof-gs234.txt

Ehm...
I'm sorry, but this code:

#define map_adjust_x(X)            \
  ((X) < 0                         \
   ? ((X) % map.xsize + map.xsize) \
   : ((X) >= map.xsize             \
      ? (X) % map.xsize            \
      : (X)))

will reopen the bug <http://www.freeciv.org/cgi-bin/bugs?findid=749>.

If we want to try to speed up Freeciv, we should also try to evaluate the 
impact of options like "-march=i686" or "-march=athlon" to gcc (all the 
recent x86 processors have CMOVs instructions that can eliminate many 
branches).

ciao

-- 
Lino Mastrodomenico
E-mail: mastro@xxxxxxxxxx


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