<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: Strings & Memory Usage --> <!--X-From-R13: Xrss Yrffryzna <wrssxNgrargjbex.pbz> --> <!--X-Date: from tacitus.globecomm.net [207.51.48.7] by mx3.ibm.net id 861073179.89818-1 Tue Apr 15 02:59:39 1997 --> <!--X-Message-Id: 3.0.32.19970414200757.00b0588c#mail,tenetwork.com --> <!--X-Content-Type: text/plain --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, Re: Strings & Memory Usage</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:jeffk#tenetwork,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="msg00137.html">Previous</a> | <a href="msg00139.html">Next</a> ] Thread: [ <a href="msg00135.html">Previous</a> | <a href="msg00141.html">Next</a> ] Index: [ <A HREF="author.html#00138">Author</A> | <A HREF="#00138">Date</A> | <A HREF="thread.html#00138">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>Re: Strings & Memory Usage</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: Mud Dev Mailing List <<A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A>></LI> <LI><em>Subject</em>: Re: Strings & Memory Usage</LI> <LI><em>From</em>: Jeff Kesselman <<A HREF="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</A>></LI> <LI><em>Date</em>: Mon, 14 Apr 1997 20:08:00 -0700</LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> There is a general approach where you never copy memory until it is modified. When a valeu is copiedm yo usimply vopy the pointer. You keep a reference coutn and when data is MODIFIED through the pointer TEHN and ONLY then do you make a seperate copy. JK At 08:07 PM 4/14/97 +0100, you wrote: >Is there a common way to save the memory used up by storing strings? I'm >sure something was said on this subject in the RGMA 'MUD Memory' thread >(by George Reese, IIRC) > >I will probably be using some sort of bytecode compilation on my mud now. >Would this method of memory saving simply involve checking a list of >those strings currently in memory, and either adding a new string, or >adding a pointer to an old string? (that would probably slow down the >process unless the storage structure was right, tho) > >Thanks, >Greg. > >PS On the subject of project management, I was planning on some sort of >autocratic method, quite simply because I have experienced first-hand the >political nightmare of a democracy (see my intro). I'll probably have >some communication medium through which people can talk about design >ideas, then I would decide what I wanted, and share the work out to >numerous people. One of the goals of Frontiers is to have a code base >which *anyone* can contribute to - thats one of the reasons i'll be using >the copyleft. Probably a core base of serious programmers, and >'contractors' who want to do the odd feature here and there. I do think >it important that the programmers dont make unilateral design changes >while coding tho - they should report design flaws, where a solution >should either be given by me (if a simple fix), or discussed by everyone. >The documentation of every development stage is of paramount importance - >it sickens me how poorly documented muds and code bases are. In fact, it >might be to blame, to a degree, on the massive proliferation of stock >muds; mudders are hobbyists, so want some code to hack - they dont want >to create a unique game, most arent that serious about it. > >Maybe I'm wrong, but I doubt it. > >--------------------------------------------------------------------------- --- > T H E F R O N T I E R S P R O J E C T > <A HREF="http://www.uni-corn.demon.co.uk">http://www.uni-corn.demon.co.uk</A> <A HREF="telnet://linux2.cms.shu.ac.uk:9999">telnet://linux2.cms.shu.ac.uk:9999</A> > A student who changes the course of history is probably taking an exam > > </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00137.html">Re: Issues from the digests and Wout's list</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00139.html">Re: Threads and Sockets (Was Ho hum)</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00135.html">Strings & Memory Usage</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00141.html">Re: Strings & Memory Usage</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00138"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00138"><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: Threads and Sockets (Was Ho hum)</STRONG>, <EM>(continued)</EM> <ul compact> <LI><strong><A NAME="00140" HREF="msg00140.html">Re: Threads and Sockets (Was Ho hum)</A></strong>, S001GMU <a href="mailto:S001GMU#nova,wright.edu">S001GMU#nova,wright.edu</a>, Tue 15 Apr 1997, 20:33 GMT </LI> <LI><strong><A NAME="00143" HREF="msg00143.html">Re: Threads and Sockets (Was Ho hum)</A></strong>, clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Tue 15 Apr 1997, 23:07 GMT </LI> <LI><strong><A NAME="00168" HREF="msg00168.html">Re: Threads and Sockets (Was Ho hum)</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 21 Apr 1997, 04:09 GMT </LI> </ul> </LI> <LI><strong><A NAME="00135" HREF="msg00135.html">Strings & Memory Usage</A></strong>, Greg Munt <a href="mailto:greg#uni-corn,demon.co.uk">greg#uni-corn,demon.co.uk</a>, Tue 15 Apr 1997, 03:13 GMT <UL> <li><Possible follow-up(s)><br> <LI><strong><A NAME="00138" HREF="msg00138.html">Re: Strings & Memory Usage</A></strong>, Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Tue 15 Apr 1997, 09:59 GMT </LI> <LI><strong><A NAME="00141" HREF="msg00141.html">Re: Strings & Memory Usage</A></strong>, Shawn Halpenny <a href="mailto:rsh#dos,nortel.com">rsh#dos,nortel.com</a>, Tue 15 Apr 1997, 22:28 GMT </LI> <LI><strong><A NAME="00142" HREF="msg00142.html">Re: Strings & Memory Usage</A></strong>, clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Tue 15 Apr 1997, 22:59 GMT </LI> <LI><strong><A NAME="00146" HREF="msg00146.html">Re: Strings & Memory Usage</A></strong>, ashen <a href="mailto:ashen#pixi,com">ashen#pixi,com</a>, Thu 17 Apr 1997, 00:55 GMT </LI> <LI><strong><A NAME="00169" HREF="msg00169.html">Re: Strings & Memory Usage</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 21 Apr 1997, 04:03 GMT </LI> </UL> </LI> </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>