Storing/Accessing stuff in a big terrain map
Ulf Wiger (AL/EAB)
Wed Jun 9 13:06:11 CEST 2004
Well, then you can try ets - either set or ordered_set - or
perhaps gb_trees or 'lines' (on sourceforge).
> -----Original Message-----
> From: Marc van Woerkom [mailto:]
> Sent: den 9 juni 2004 12:07
> To: Ulf Wiger (AL/EAB);
> Subject: Re: Storing/Accessing stuff in a big terrain map
> Am Wed, 9 Jun 2004 11:50:57 +0200 hat
> "Ulf Wiger (AL/EAB)" <> geschrieben:
> >Ooh, tricky. I guess you're talking about storing DTEDs
> >(Digital Terrain Elevation Data) etc.?
> Nah, much simpler.
> Just a plain game board (1000x1000 cells or such) and
> put/get some 16bits of information in every cell, to
> implement that ant simulation. Or a robot war or a car
> simulator.. :)
> Value = get(Map, X, Y, Bit)
> store(Map, X, Y, Bit, true)
> There is no array type in Erlang suitable for random
> access ops?
> >I guess when trying to use Erlang for this type of thing,
> >you have to determine what level of scalability and
> >performance is "good enough".
> Perhaps on really has to implement some Bif or talk to
> some C written storage server. :)
More information about the erlang-questions