msg00671.html
1999Q1/msg00671.html · 7.6 KB
From the archive 1999Q1.zip
Download the archive « Back to the archive contents
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD-Dev] Re: Variable-sized structures in C (was: Naming and Directories) -->
<!--X-From-R13: Brgev Hvexxhyn <civexxhyNvxv.sv> -->
<!--X-Date: Mon, 22 Mar 1999 05:39:33 -0800 -->
<!--X-Message-Id: 14070.39543.471410.366804#arioch,tky.hut.fi -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: E10ORuk-0003kU-00#mail,kanga.nu -->
<!--X-Reference: 199903221656.IAA17911#cashew,snugharbor.com.snugharbor.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Variable-sized structures in C (was: Naming and </title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:pvirkkul#iki,fi">
</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="msg00670.html">Previous</a>
| <a href="msg00672.html">Next</a>
]
Thread:
[ <a href="msg00670.html">Previous</a>
| <a href="msg00635.html">Next</a>
]
Index:
[ <A HREF="author.html#00671">Author</A>
| <A HREF="#00671">Date</A>
| <A HREF="thread.html#00671">Thread</A>
]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Variable-sized structures in C (was: 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>: [MUD-Dev] Re: Variable-sized structures in C (was: Naming and Directories)</LI>
<LI><em>From</em>: Petri Virkkula <<A HREF="mailto:pvirkkul#iki,fi">pvirkkul#iki,fi</A>></LI>
<LI><em>Date</em>: Mon, 22 Mar 1999 21:31:03 +0200 (EET)</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>
>>>>> "Alex" == T Alexander Popiel <popiel#snugharbor,com> writes:
Alex> code to any who want it). The string table is used for attribute
Alex> names on the objects, to eliminate duplication of the same name
Alex> on multiple objects through shared storage of the name. This
Alex> has yielded 50% storage reduction over naive duplication and
Alex> 30% storage reduction over duplicating all but a known set of
Alex> common names (the current policy in the server) in tests using
Alex> the pre-closing DuneMUSH database. (Of course, the overall
Alex> memory usage only went down a few percent, because the names
Alex> are generally smaller than the contents, but even 5% on 40 meg
Alex> is nice.)
You can save lots of memory if you use shared strings
everywhere, see these statistics:
--- cut here ---
Driver status string
Strings Bytes
Strings malloced 363718 14476032 + 2382392 overhead
Total asked for -39490240 604628036
Space actually required/total string bytes 2%
Searches: 610985845 Average search length: 1.347
Longest shared string so far: 24384
--- cut here ---
Instead of using 577MB for strings, the driver uses only 16M
for them.
Petri
_______________________________________________
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>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00668" HREF="msg00668.html">[MUD-Dev] Re: Variable-sized structures in C (was: Naming and Directories)</A></STRONG>
<UL><LI><EM>From:</EM> "T. Alexander Popiel" <popiel#snugharbor,com></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00670.html">Re: [MUD-Dev] Re: Variable-sized structures in C (was: Naming and Directories)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00672.html">[MUD-Dev] Renaming objects.</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00670.html">Re: [MUD-Dev] Re: Variable-sized structures in C (was: Naming and Directories)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00635.html">[MUD-Dev] Unicode, ascii and names</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00671"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00671"><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] Self-organizing worlds (was: Elder Games)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00696" HREF="msg00696.html">Re: [MUD-Dev] Self-organizing worlds (was: Elder Games)</A></strong>,
Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Thu 25 Mar 1999, 00:19 GMT
</LI>
</ul>
<LI><strong><A NAME="00695" HREF="msg00695.html">Re: [MUD-Dev] Self-organizing worlds (was: Elder Games)</A></strong>,
Benjamin D. Wiechel <a href="mailto:strycher#toast,net">strycher#toast,net</a>, Wed 24 Mar 1999, 21:39 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00668" HREF="msg00668.html">[MUD-Dev] Re: Variable-sized structures in C (was: Naming and Directories)</A></strong>,
T. Alexander Popiel <a href="mailto:popiel#snugharbor,com">popiel#snugharbor,com</a>, Mon 22 Mar 1999, 10:28 GMT
<UL>
<LI><strong><A NAME="00670" HREF="msg00670.html">Re: [MUD-Dev] Re: Variable-sized structures in C (was: Naming and Directories)</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Mon 22 Mar 1999, 13:18 GMT
</LI>
<LI><strong><A NAME="00671" HREF="msg00671.html">[MUD-Dev] Re: Variable-sized structures in C (was: Naming and Directories)</A></strong>,
Petri Virkkula <a href="mailto:pvirkkul#iki,fi">pvirkkul#iki,fi</a>, Mon 22 Mar 1999, 13:39 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00635" HREF="msg00635.html">[MUD-Dev] Unicode, ascii and names</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Wed 17 Mar 1999, 13:25 GMT
<LI><strong><A NAME="00614" HREF="msg00614.html">[MUD-Dev] Mass Creation OLC Functions (idea from Elder Games)</A></strong>,
Wes Connell <a href="mailto:wconnell#adhesive,com">wconnell#adhesive,com</a>, Tue 16 Mar 1999, 14:46 GMT
<UL>
<LI><strong><A NAME="00618" HREF="msg00618.html">Re: [MUD-Dev] Mass Creation OLC Functions (idea from Elder Games)</A></strong>,
Matthew Mihaly <a href="mailto:diablo#best,com">diablo#best,com</a>, Tue 16 Mar 1999, 21:00 GMT
<UL>
<LI><strong><A NAME="00620" HREF="msg00620.html">Re: [MUD-Dev] Mass Creation OLC Functions (idea from Elder Games)</A></strong>,
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Tue 16 Mar 1999, 21:36 GMT
</LI>
</UL>
</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>