1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Persistant storage....  My current idea. -->
<!--X-From-R13: "Xba O. Znzoreg" <wyflfvapNvk.argpbz.pbz> -->
<!--X-Date: Sun, 29 Mar 1998 06:24:39 +0000 -->
<!--X-Message-Id: 199803290624.AAA15756@dfw&#45;ix13.ix.netcom.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.LNX.3.96.980328222126.666A&#45;100000#shamen,cyberhighway.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  Persistant storage....  My current idea.</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jlsysinc#ix,netcom.com">
</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="msg00913.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00915.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00913.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00915.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00914">Author</A>
&nbsp;|&nbsp;<A HREF="#00914">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00914">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  Persistant storage....  My current idea.</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]  Persistant storage....  My current idea.</LI>
<LI><em>From</em>: "Jon A. Lambert" &lt;<A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</A>&gt;</LI>
<LI><em>Date</em>: Sun, 29 Mar 1998 01:27:38 -5</LI>
<LI><em>Reply-to</em>: <A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</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 28 Mar 98 at 21:53, Ben Greear wrote:
&gt; *********************
&gt; 
&gt; I'm currently planning on using one file, with certain blocks
&gt; allocated within it for objects.  It will basically be a linked
&gt; list represented as a file.
&gt; 
&gt; I'll have headers that point the the seek position of the next and
&gt; previous element in the file.  It will also keep track of the used and
&gt; total space allocated for that element.
&gt; 
&gt; If I need to update, and it's too big, it will be moved to the end
&gt; of the file, and the previous element will get it's space.  (I'll deal
&gt; with boundary cases, sufice it to say.)
&gt; 
&gt; Now, this reeks of inneficiency when trying to look up an object based on
&gt; some key (object number in my case, probably 8 bytes ).
&gt; 
&gt; However, I'm going to create a hash table at boot time to link an object
&gt; id with the seek position of that object in the file.  I believe this
&gt; should give me as quick access as I can expect.
&gt; 
&gt; *************************

Why not put your headers (pointers to the seek pos)
into a separate file, an index file.

Then you'd be very similar to an xDBM or ISAM. :)

&gt; Some other things:  I'll have objects unique across the universe, even
&gt; different servers.  (Each server will be assigned an ID, and each object
&gt; within that server will have a unique ID.  So, given both ID's, I can
&gt; guarantee uniqueness.)
&gt;

Very much like COOL.. 

struct ObjID {
	short serverid;
	int   objectid;
}
 
 
--
--/*\ Jon A. Lambert - TychoMUD     Internet:jlsysinc#ix,netcom.com /*\--
--/*\ Mud Server Developer's Page &lt;<A  HREF="http://www.netcom.com/~jlsysinc">http://www.netcom.com/~jlsysinc</A>&gt; /*\--
--/*\   "Everything that deceives may be said to enchant" - Plato   /*\--

</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="00915" HREF="msg00915.html">Re: [MUD-Dev]  Persistant storage....  My current idea.</A></strong>
<ul compact><li><em>From:</em> Ben Greear &lt;greear#cyberhighway,net&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00913" HREF="msg00913.html">Persistant storage....  My current idea.</A></STRONG>
<UL><LI><EM>From:</EM> Ben Greear &lt;greear#cyberhighway,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00913.html">Persistant storage....  My current idea.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00915.html">Re: [MUD-Dev]  Persistant storage....  My current idea.</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00913.html">Persistant storage....  My current idea.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00915.html">Re: [MUD-Dev]  Persistant storage....  My current idea.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00914"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00914"><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="00921" HREF="msg00921.html">Re: [MUD-Dev]: smoothing</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 31 Mar 1998, 23:59 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00922" HREF="msg00922.html">Re: [MUD-Dev]: smoothing</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 01 Apr 1998, 00:04 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00916" HREF="msg00916.html">UML &amp; CORBA</A></strong>, 
Greg Munt <a href="mailto:greg#uni-corn,demon.co.uk">greg#uni-corn,demon.co.uk</a>, Mon 30 Mar 1998, 21:53 GMT
<LI><strong><A NAME="00913" HREF="msg00913.html">Persistant storage....  My current idea.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sun 29 Mar 1998, 05:34 GMT
<UL>
<LI><strong><A NAME="00914" HREF="msg00914.html">Re: [MUD-Dev]  Persistant storage....  My current idea.</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sun 29 Mar 1998, 06:24 GMT
<UL>
<LI><strong><A NAME="00915" HREF="msg00915.html">Re: [MUD-Dev]  Persistant storage....  My current idea.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Mon 30 Mar 1998, 04:41 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00912" HREF="msg00912.html">Re: (rec.games.mud.admin) Roleplaying (fwd)</A></strong>, 
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Fri 27 Mar 1998, 20:37 GMT
<LI><strong><A NAME="00911" HREF="msg00911.html">META: New Mail server and ISP</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 27 Mar 1998, 18:23 GMT
<LI><strong><A NAME="00910" HREF="msg00910.html">Predicting future motion intelligently</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Thu 26 Mar 1998, 23:04 GMT
</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>