[Freeciv-Dev] Re: Freeciv is too slow
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, 6 Nov 2003, Per I. Mathisen wrote:
> On Thu, 6 Nov 2003, Paul Zastoupil wrote:
> > > If you could post a profile, then that would of course be a godsend.
>
> > http://www.freeciv.org/~paulz/reallyslow_gprof.out
>
> 33% of the CPU time goes into get_defender()
Most of the get_defender() calls come from, of course, fstk. We can avoid
a lot of those by checking if we need to call get_defender() first: We do
not need to if there is exactly one unit there. It is automatically the
returned punit anyway (unless errors are detected). We can also move the
'unit is on different continent, ignore it' check in the unit_list_iterate
a few lines up, so that it is checked before get_defender() is called.
Somehow I am not convinced this is the main problem here, though.
- Per
- [Freeciv-Dev] Re: Freeciv is too slow, (continued)
- [Freeciv-Dev] Re: Freeciv is too slow, Per I. Mathisen, 2003/11/06
- [Freeciv-Dev] Re: Freeciv is too slow, Paul Zastoupil, 2003/11/06
- [Freeciv-Dev] Re: Freeciv is too slow, Mike Kaufman, 2003/11/06
- [Freeciv-Dev] Re: Freeciv is too slow, Paul Zastoupil, 2003/11/06
- [Freeciv-Dev] Re: Freeciv is too slow, Mike Kaufman, 2003/11/06
- [Freeciv-Dev] Re: Freeciv is too slow, Per I. Mathisen, 2003/11/06
- [Freeciv-Dev] Re: Freeciv is too slow, Paul Zastoupil, 2003/11/06
- [Freeciv-Dev] Re: Freeciv is too slow, Per I. Mathisen, 2003/11/06
- [Freeciv-Dev] Re: Freeciv is too slow, Paul Zastoupil, 2003/11/06
- [Freeciv-Dev] Re: Freeciv is too slow, Per I. Mathisen, 2003/11/06
- [Freeciv-Dev] Re: Freeciv is too slow,
Per I. Mathisen <=
- [Freeciv-Dev] Re: Freeciv is too slow, Gregory Berkolaiko, 2003/11/09
- [Freeciv-Dev] Re: Freeciv is too slow, Gregory Berkolaiko, 2003/11/09
- [Freeciv-Dev] Re: Freeciv is too slow, Paul Zastoupil, 2003/11/06
[Freeciv-Dev] Re: Freeciv is too slow, Raimar Falke, 2003/11/06
|
|