msg00550.html

1999Q1/msg00550.html · 8.2 KB

From the archive 1999Q1.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Naming and Directories? -->
<!--X-From-R13: Vnaf&#45;Vraevx Egnresryqg <uufNpof.qgh.qx> -->
<!--X-Date: Fri, 12 Mar 1999 04:56:43 &#45;0800 -->
<!--X-Message-Id: Pine.SGI.3.95.990312133159.19819B&#45;100000#genome,cbs.dtu.dk -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199903120744.XAA16394#erdos,Stanford.EDU -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Naming and Directories?</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:hhs#cbs,dtu.dk">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00549.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00551.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00569.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00567.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00550">Author</A>
&nbsp;|&nbsp;<A HREF="#00550">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00550">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Naming and Directories?</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Naming and Directories?</LI>
<LI><em>From</em>: Hans-Henrik Staerfeldt &lt;<A HREF="mailto:hhs#cbs,dtu.dk">hhs#cbs,dtu.dk</A>&gt;</LI>
<LI><em>Date</em>: Fri, 12 Mar 1999 13:46:28 +0100 (MET)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>

On Thu, 11 Mar 1999, Mark Gritter wrote:
&gt;
&gt; In MUDs I'm familiar with, directories seem to be done in a very ad-hoc 
&gt; fashion.  Objects may have no name associated with them at all, or a
&gt; name can be discovered only by exhaustive search.
&gt; 
&gt; Dikus are a partiularly bad example here.  Doing a "tell" may involve 
&gt; scanning the entire list of online players.  Objects (I mean driver-level
&gt; objects including mobs and items) are named only by their location in memory; 
&gt; object prototypes have essentially meaningless integer IDs.

The easy way of speeding this up is by maintaining search tries for for
the entities. You maintain search tries for both lokalized areas as well
as for the whole game, according to your needs. Looking up a name now
takes roughly O(m) where m is the size of the name. And it is easy to
make this do the 'extended names' search for objects with names of
multiple words, like "dragon","red dragon","huge dragon" "dragon with
green eyes", returning simply the longest match made. 

&gt; A potential drawback I see is increased memory usage (perhaps prohibitely
&gt; so.)  Benefits to CPU time by doing "smarter" lookups are probably not likely 
&gt; to be a big win.

Such a trie would need to be managed every time objects 'move' localities,
that is both when units move from location to location and when they are
created and deleted from the game, and here you need an equivalent
maintenance time for the trie. And yes, the tries does cost extra memory,
but not much compared to the objects in memory. It most surely will speed
up lookup if your database covers hundreds of thousands of objects in
the game, and do global lookup often (if f.inst. used in an interpreted
language, that makes heavy use of it).

Hans Henrik Stærfeldt         |  
email: bombman#diku,dk        |  voice:      +45 40383492 
  hhs#cbs,dtu.dk              |  voice work: +45 45252425
phone-mail:                   |  address:
  40383492#sms,tdm.dk         |       Hans Henrik Stærfeldt,
WWW-home                      |       Dybendalsvej 74 2. th,
  <A  HREF="http://www.cbs.dtu.dk/hhs/">http://www.cbs.dtu.dk/hhs/</A>  |       2720 Vanløse, Danmark.
                              |
Student of Computer Science   | Scientific programmer at Center for
  and Information Psychology. |   Biological Sequence Analysis,
  at University of Copenhagen |   Technical University of Denmark.




_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00547" HREF="msg00547.html">[MUD-Dev] Naming and Directories?</A></STRONG>
<UL><LI><EM>From:</EM> Mark Gritter &lt;mark#erdos,Stanford.EDU&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00549.html">Re: [MUD-Dev] Multiple clients (was Re: How to support 1000+ simultaneous connec</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00551.html">[MUD-Dev] distributed, _untrusted_ servers</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00569.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00567.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00550"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00550"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><strong><A NAME="00551" HREF="msg00551.html">[MUD-Dev] distributed, _untrusted_ servers</A></strong>, 
Oliver Jowett <a href="mailto:icecube#ihug,co.nz">icecube#ihug,co.nz</a>, Fri 12 Mar 1999, 13:45 GMT
<LI><strong><A NAME="00547" HREF="msg00547.html">[MUD-Dev] Naming and Directories?</A></strong>, 
Mark Gritter <a href="mailto:mark#erdos,Stanford.EDU">mark#erdos,Stanford.EDU</a>, Fri 12 Mar 1999, 07:44 GMT
<UL>
<LI><strong><A NAME="00548" HREF="msg00548.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Matthew D. Fuller <a href="mailto:fullermd#futuresouth,com">fullermd#futuresouth,com</a>, Fri 12 Mar 1999, 11:04 GMT
<UL>
<LI><strong><A NAME="00569" HREF="msg00569.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Sat 13 Mar 1999, 14:13 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00550" HREF="msg00550.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Hans-Henrik Staerfeldt <a href="mailto:hhs#cbs,dtu.dk">hhs#cbs,dtu.dk</a>, Fri 12 Mar 1999, 12:56 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00567" HREF="msg00567.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 13 Mar 1999, 12:57 GMT
<UL>
<LI><strong><A NAME="00570" HREF="msg00570.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Sat 13 Mar 1999, 22:40 GMT
<UL>
<LI><strong><A NAME="00578" HREF="msg00578.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Mark Gritter <a href="mailto:mark#erdos,Stanford.EDU">mark#erdos,Stanford.EDU</a>, Sat 13 Mar 1999, 22:57 GMT
<UL>
<LI><strong><A NAME="00582" HREF="msg00582.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Sun 14 Mar 1999, 11:44 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>

Site Stats

Snippets: 1791
Codebases: 571