Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] (PR#12840) delay in pollution patrol (possible causes)
Home

[Freeciv-Dev] (PR#12840) delay in pollution patrol (possible causes)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bdunstan149@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#12840) delay in pollution patrol (possible causes)
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Apr 2005 13:51:18 -0700
Reply-to: bugs@xxxxxxxxxxx

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

unit_list_find is super-slow, O(n).  You should be using
player_find_unit_by_id instead.  This does a hash lookup and is about O(1).

-jason




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