Complete.Org: Mailing Lists: Archives: freeciv-ai: September 2004:
[freeciv-ai] Re: [Freeciv-Dev] (PR#10301) cachemap is way too big
Home

[freeciv-ai] Re: [Freeciv-Dev] (PR#10301) cachemap is way too big

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [freeciv-ai] Re: [Freeciv-Dev] (PR#10301) cachemap is way too big
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 25 Sep 2004 17:51:22 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10301 >

Jason Short wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=10301 >
> 
> In aisettler.c, the cachemap is declared to a static size of 520,200 bytes.
> 
> This seems excessive, since if it were allocated dynamically it would 
> normally have a size of 32,000 bytes.

On a related note, the cache_map is used (in cityresult_fill) before it 
is initialized (in ai_settler_init).

jason




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