Storing/Accessing stuff in a big terrain map

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
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).

/Uffe

> -----Original Message-----
> From: Marc van Woerkom [mailto:Marc.Vanwoerkom@REDACTED]
> Sent: den 9 juni 2004 12:07
> To: Ulf Wiger (AL/EAB); erlang-questions@REDACTED
> Subject: Re: Storing/Accessing stuff in a big terrain map
> 
> 
> Am Wed, 9 Jun 2004 11:50:57 +0200  hat
> "Ulf Wiger (AL/EAB)" <ulf.wiger@REDACTED> 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.. :)
> 
> Like
> 
>    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. :)
> 
> Regards,
> Marc
> 



More information about the erlang-questions mailing list