[freeciv-ai] Re: New settler code
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, Apr 14, 2003 at 11:11:55AM -0500, Jason Dorje Short wrote:
> Per I. Mathisen wrote:
> >
> > Duplicating the map for each player will not consume more CPU, but more
> > memory. The current implementation uses 61kb. Multiply by 32 players, and
> > you spend 3mb.
>
> But each player just needs one bit of information for each tile, right?
> So 97% of this 3mb is empty, and could be eliminated if you used a
> bitfield.
>
> Moreover, for systems where std_bool uses a char values as boolean, the
> 3mb is reduced to 750k anyway.
after glancing at the code, no, Per wants to be able to put a city or unit
id on the tile, which requires a full int. I'm not familiar enough with the
code or the problem, but it does seem to be an unoptimal solution with
regard to memory considerations.
-mike
- [freeciv-ai] Re: New settler code, (continued)
- [freeciv-ai] Re: New settler code, Per I. Mathisen, 2003/04/15
- [freeciv-ai] Re: New settler code, Mike Kaufman, 2003/04/15
- [freeciv-ai] Re: New settler code, Mark Metson, 2003/04/15
- [freeciv-ai] Re: New settler code, Ross Wetmore, 2003/04/16
- [freeciv-ai] Re: New settler code, Gregory Berkolaiko, 2003/04/16
- [freeciv-ai] Re: New settler code, Ross Wetmore, 2003/04/16
- [freeciv-ai] Re: New settler code, Raimar Falke, 2003/04/17
- [freeciv-ai] Re: New settler code, Jason Dorje Short, 2003/04/14
- [freeciv-ai] Re: New settler code,
Mike Kaufman <=
- [freeciv-ai] Re: New settler code, Raimar Falke, 2003/04/14
- [freeciv-ai] Re: New settler code, Per I. Mathisen, 2003/04/14
- [freeciv-ai] Re: New settler code, Per I. Mathisen, 2003/04/26
- [freeciv-ai] Re: New settler code, Gregory Berkolaiko, 2003/04/11
- [freeciv-ai] Re: New settler code, Per I. Mathisen, 2003/04/12
- [freeciv-ai] Re: New settler code, Gregory Berkolaiko, 2003/04/12
[freeciv-ai] Re: New settler code, Gregory Berkolaiko, 2003/04/07
|
|