Re: Applications that use thousands of data containers?
- From: Simon Richard Clarkstone <s.r.clarkstone@xxxxxxxxxxxx>
- Date: Sat, 28 Apr 2007 05:44:47 +0100
JohnQ wrote:
What are some applications and domains that use many containers (lists, maps, arrays, whatever) in one program? Within the science of programming, hashtables that are implemented using a list container for the buckets which could then have 1000's of lists (not that that would be a good design though). But what are some domains and application programs that use many (hundreds or thousands) of containers do get their job done? (Please note that I'm not referring to the number of elements in the containers, but rather containers themselves).
Some types of RPG. Roguelike games could plausibly have a container for every tile on every level of the dungeon, to hold the contents of the tile. A game of Nethack will have (say) 55 levels, each 80*22 tiles, making a total of 96800 containers, almost all of which are empty. I suspect Nethack actually uses a sparse representation of some type, but mostly because much of its design is 20 years old and was designed for much less powerful machines than modern PCs. Also, only one level at a time is in memory: the others are on-disk. A modern roguelike might actually use one container per tile, and keep all levels in memory. In addition, I know some have a list of "special properties" for each object or monster, which will add a further container per game object.
A MMORPG will have several containers for every player online, for things like inventory, timers, etc.
--
Simon Richard Clarkstone:
s.r.cl?rkst?n?@durham.ac.uk/s?m?n.cl?rkst?n?@hotmail.com
Scheme guy says: (> Scheme Haskell)
Haskell guy says: (> Scheme) Haskell
.
- References:
- Prev by Date: Re: Applications that use thousands of data containers?
- Next by Date: Re: Change for a Dollar
- Previous by thread: Re: Applications that use thousands of data containers?
- Next by thread: Re: Applications that use thousands of data containers?
- Index(es):
Relevant Pages
|