Re: (PR#10321) Replace slow city_range_iterate

"Per I. Mathisen" <per-0/[email protected]>
Newsgroups gmane.games.freeciv.ai
Message-ID <[email protected]>
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10321 >

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.