<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-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-ix13.ix.netcom.com --> <!--X-Content-Type: text/plain --> <!--X-Reference: Pine.LNX.3.96.980328222126.666A-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> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00913.html">Previous</a> | <a href="msg00915.html">Next</a> ] Thread: [ <a href="msg00913.html">Previous</a> | <a href="msg00915.html">Next</a> ] Index: [ <A HREF="author.html#00914">Author</A> | <A HREF="#00914">Date</A> | <A HREF="thread.html#00914">Thread</A> ] <!--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" <<A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</A>></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: > ********************* > > I'm currently planning on using one file, with certain blocks > allocated within it for objects. It will basically be a linked > list represented as a file. > > I'll have headers that point the the seek position of the next and > previous element in the file. It will also keep track of the used and > total space allocated for that element. > > If I need to update, and it's too big, it will be moved to the end > of the file, and the previous element will get it's space. (I'll deal > with boundary cases, sufice it to say.) > > Now, this reeks of inneficiency when trying to look up an object based on > some key (object number in my case, probably 8 bytes ). > > However, I'm going to create a hash table at boot time to link an object > id with the seek position of that object in the file. I believe this > should give me as quick access as I can expect. > > ************************* 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. :) > Some other things: I'll have objects unique across the universe, even > different servers. (Each server will be assigned an ID, and each object > within that server will have a unique ID. So, given both ID's, I can > guarantee uniqueness.) > Very much like COOL.. struct ObjID { short serverid; int objectid; } -- --/*\ Jon A. Lambert - TychoMUD Internet:jlsysinc#ix,netcom.com /*\-- --/*\ Mud Server Developer's Page <<A HREF="http://www.netcom.com/~jlsysinc">http://www.netcom.com/~jlsysinc</A>> /*\-- --/*\ "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 <greear#cyberhighway,net></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 <greear#cyberhighway,net></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><Possible follow-up(s)><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 & 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> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>