1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: Strings &#38; 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&#45;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 &amp; 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>
[&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="msg00137.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00139.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00135.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00141.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00138">Author</A>
&nbsp;|&nbsp;<A HREF="#00138">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00138">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: Strings &amp; Memory Usage</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: Mud Dev Mailing List &lt;<A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A>&gt;</LI>
<LI><em>Subject</em>: Re: Strings &amp; Memory Usage</LI>
<LI><em>From</em>: Jeff Kesselman &lt;<A HREF="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</A>&gt;</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:
&gt;Is there a common way to save the memory used up by storing strings? I'm 
&gt;sure something was said on this subject in the RGMA 'MUD Memory' thread 
&gt;(by George Reese, IIRC)
&gt;
&gt;I will probably be using some sort of bytecode compilation on my mud now. 
&gt;Would this method of memory saving simply involve checking a list of 
&gt;those strings currently in memory, and either adding a new string, or 
&gt;adding a pointer to an old string? (that would probably slow down the 
&gt;process unless the storage structure was right, tho)
&gt;
&gt;Thanks,
&gt;Greg.
&gt;
&gt;PS On the subject of project management, I was planning on some sort of 
&gt;autocratic method, quite simply because I have experienced first-hand the 
&gt;political nightmare of a democracy (see my intro). I'll probably have 
&gt;some communication medium through which people can talk about design 
&gt;ideas, then I would decide what I wanted, and share the work out to 
&gt;numerous people. One of the goals of Frontiers is to have a code base 
&gt;which *anyone* can contribute to - thats one of the reasons i'll be using 
&gt;the copyleft. Probably a core base of serious programmers, and 
&gt;'contractors' who want to do the odd feature here and there. I do think 
&gt;it important that the programmers dont make unilateral design changes 
&gt;while coding tho - they should report design flaws, where a solution 
&gt;should either be given by me (if a simple fix), or discussed by everyone. 
&gt;The documentation of every development stage is of paramount importance - 
&gt;it sickens me how poorly documented muds and code bases are. In fact, it 
&gt;might be to blame, to a degree, on the massive proliferation of stock 
&gt;muds; mudders are hobbyists, so want some code to hack - they dont want 
&gt;to create a unique game, most arent that serious about it. 
&gt;
&gt;Maybe I'm wrong, but I doubt it.
&gt;
&gt;---------------------------------------------------------------------------
---
&gt;        T  H  E     F  R  O  N  T  I  E  R  S     P  R  O  J  E  C  T   
&gt;    <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>
&gt;   A student who changes the course of history is probably taking an exam
&gt;
&gt;


</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 &amp; Memory Usage</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00141.html">Re: Strings &amp; 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 &amp; 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>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00138" HREF="msg00138.html">Re: Strings &amp; 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 &amp; 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 &amp; 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 &amp; 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 &amp; 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>
[&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>