Complete.Org: Mailing Lists: Archives: freeciv-ai: September 2004:
[freeciv-ai] Re: (PR#10321) Replace slow city_range_iterate

[freeciv-ai] Re: (PR#10321) Replace slow city_range_iterate

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [freeciv-ai] Re: (PR#10321) Replace slow city_range_iterate
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Tue, 28 Sep 2004 03:29:54 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: >

On Sat, 25 Sep 2004, Mateusz Stefek wrote:
> This patch replaces slow city_range_iterate macro with city_list_do
> It doesn't iterate over all cities if range == EFR_LOCAL or EFR_CITY
> Autogame times:
> Old:
> 2368.48user 82.32system
> New:
> 2403.24user 84.71system
> I don't have any idea why the new macro is slower.
> Per?

Iterating a list is in itself a very fast operation. I don't know why your
patch made it _slower_, though.

  - Per

[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] Re: (PR#10321) Replace slow city_range_iterate, Per I. Mathisen <=