msg00577.html

1999Q1/msg00577.html · 7.6 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: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Sat, 13 Mar 1999 14:50:12 &#45;0800 -->
<!--X-Message-Id: 199903140640.XAA01563@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--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:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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="msg00570.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00578.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00579.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00608.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00577">Author</A>
&nbsp;|&nbsp;<A HREF="#00577">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00577">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>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Sat, 13 Mar 1999 23:40:48 -0700</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>
[Mik Clarke:]

 &gt;Given a task of sending a message to a specific player, when that player could be
 &gt;located anywhere within the mud, how do you propose to do it faster than by running
 &gt;the list of all connected players?  Sure, a binary index by name might help, but I
 &gt;suspect you'd have trouble seeing the saving...

Depends on how often you do it. After removing some idiocy in my database
code, and skipping the MUD language interpreter, the biggest hits on
my profiling of a test with 600 "machines" was the code that sees who
should get a message whenever a machine does something. E.g., a machine
goes from one room to another. All characters and machines in both
rooms may need to know about that. So, with 600 machines moving around
every couple of seconds, thats an order 600 * 600 = 360,000 cost. It
starts to be noticeable. So, the bit of work I've done recently has
been to start adding more pointers to the agent structures, so that
I can link them together based on location, and also via a table
hashed by locations. The first ring gets me those in the old location.
The hashing gets me to any ring for the new location. I expect a
noticeable speedup once I get all the pointer fiddling right.

(I need to merge characters and machines into consistent agent structures,
so this works better, but thats going to be a lot of work.)

--
Don't design inefficiency in - it'll happen in the implementation.

Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA
               <A  HREF="http://www.GraySage.Edmonton.AB.CA/cg/">http://www.GraySage.Edmonton.AB.CA/cg/</A>


_______________________________________________
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>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00608" HREF="msg00608.html">Re: [MUD-Dev] Naming and Directories?</A></strong>
<ul compact><li><em>From:</em> Mik Clarke &lt;mikclrk#ibm,net&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00570.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00578.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00579.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00608.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00577"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00577"><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>Re: [MUD-Dev] Naming and Directories?</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00664" HREF="msg00664.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Sat 20 Mar 1999, 16:16 GMT
</LI>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00571" HREF="msg00571.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Sat 13 Mar 1999, 23:07 GMT
<UL>
<LI><strong><A NAME="00572" HREF="msg00572.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sat 13 Mar 1999, 23:20 GMT
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00579" HREF="msg00579.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, 23:26 GMT
</LI>
</ul>
<LI><strong><A NAME="00577" HREF="msg00577.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, 22:50 GMT
<UL>
<LI><strong><A NAME="00608" HREF="msg00608.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Tue 16 Mar 1999, 12:40 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00581" HREF="msg00581.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>, Sun 14 Mar 1999, 09:31 GMT
</LI>
<LI><strong><A NAME="00622" HREF="msg00622.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>, Tue 16 Mar 1999, 22:15 GMT
</LI>
<LI><strong><A NAME="00623" HREF="msg00623.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>, Tue 16 Mar 1999, 22:21 GMT
</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