[Home] [Groups] - Message: [Prev in Group] [Next in Group]
16548: [MUD-Dev] Data Storage and MFC Questions
[Full Header] [Plain Text]
From: "Ben Chambers" <bjchambers@phoenixdsl.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Sat, 10 Mar 2001 12:19:24 -0800
Organization: Kanga.Nu
What is the best way of storing the data for a MUD. I know that the
most common is probably arrays or hash tables. Hash Tables, from what
I understand are arrays that have a faster lookup because of the hash
function. Which one do you use, and why? Also, has anyone ever tried
using MFC to write a MUD server? For example, I have found the MFC
Map, which is basically a wrapping of a hash table, as having a good
chance for usage in data storage. You write a subroutine as part of
the class describing the hash function for a specific type of data.
Then you just add data by index and value. And you can reference by
index, or delete by index. It is a very easy way of using a hash
table. MFC also has prospects in other aspects of MUD Design. It
allows for the simplification of many processes, including dynamic
object creation.
_______________________________________________
MUD-Dev mailing list
MUD-Dev@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev