Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2005:
[Freeciv-Dev] Re: (PR#13340) Owner change and happyborders
Home

[Freeciv-Dev] Re: (PR#13340) Owner change and happyborders

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#13340) Owner change and happyborders
From: "Benoit Hudson" <bh@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 26 Jun 2005 08:46:50 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13340 >

On Sun, Jun 26, 2005 at 04:43:57AM -0700, Mateusz Stefek wrote:
> This is an inefficient patch.
> How can I (easily) prevent refreshing same city many times ?

Use a hash, vector, or list to collect all the cities just once, then just
iterate over them.

Unless we're going to be using needs_refresh elsewhere, I personally prefer
not adding unneeded bits that need to be kept sane to our structs.

        -- Benoît





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