1999Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Text Parsing -->
<!--X-From-R13: X Q Znjerapr <pynjNinerfrnepu.pbz> -->
<!--X-Date: Thu, 10 Jun 1999 19:35:24 &#45;0700 -->
<!--X-Message-Id: E10sH9j&#45;00055C&#45;00#under,su.varesearch.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.BSF.4.10.9906092005590.8930&#45;100000#shell9,ba.best.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Text Parsing</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#varesearch,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="msg00733.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00735.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00741.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00667.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00734">Author</A>
&nbsp;|&nbsp;<A HREF="#00734">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00734">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Text Parsing</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>: Re: [MUD-Dev] Text Parsing </LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#varesearch,com">claw#varesearch,com</A>&gt;</LI>
<LI><em>Date</em>: Thu, 10 Jun 1999 19:34:55 -0700</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>
On Wed, 9 Jun 1999 20:13:58 -0700 (PDT) 
Matthew Mihaly &lt;diablo#best,com&gt; wrote:

&gt; On Wed, 9 Jun 1999, Chris Gray wrote:
&gt;&gt; [Matthew Mihaly:]

&gt;&gt;  The main advice that has been given here in the past is to
&gt;&gt; profile your code. If it's C or C++ code, compile it with -p or
&gt;&gt; -pg flags, and run it for a while. Collect the results and see
&gt;&gt; where all of your time is going.  Let us know the results, and
&gt;&gt; I'm sure lots of further advice will follow from there.

&gt; Yeah, I profiled it all. Mob ai is taking up about 20% of
&gt; processor time, and player movement is quite slow, taking up to
&gt; .07 seconds when malloc is low (our server has an irritating
&gt; little memory leak, which we're working to fix).

In which case I would suspect architectural weaknesses, such as the
code repatedly checking or doing work which is not strictly
necessary to do.  Some standard and commong examples of such
enclude:

  Polling loops.

  Linear data set traversals (versus indexes, hashes or other lookup
mechanisms)

  Balanced data structures used for rapidly changing data sets

  Repeated avoidable large working set changes

  Spinlock abusive IO techniques

&gt; So really, at most, that accounts for, on the high end, say, 35%
&gt; of processor time. The other 65% seems to be reasonably
&gt; well-distributed among everything else.

Which is the point.  That's a heck of a lot of CPU to burn not doing
much.  The task is to find out what you are doing that you don't
need to be doing.

-- 
J C Lawrence                                   Home: claw#kanga,nu
---------(*)                Linux/IA64 - Work: claw#varesearch,com
 ... Beware of cromagnons wearing chewing gum and palm pilots ...


_______________________________________________
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="00679" HREF="msg00679.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
<UL><LI><EM>From:</EM> Matthew Mihaly &lt;diablo#best,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00733.html">Re: [MUD-Dev] memory and speed</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00735.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00741.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00667.html">RE: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00734"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00734"><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] Text Parsing</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00722" HREF="msg00722.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Thu 10 Jun 1999, 22:55 GMT
</LI>
<LI><strong><A NAME="00727" HREF="msg00727.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Katrina McClelan <a href="mailto:kitkat#marcus,pants.nu">kitkat#marcus,pants.nu</a>, Fri 11 Jun 1999, 01:35 GMT
<UL>
<LI><strong><A NAME="00745" HREF="msg00745.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Fri 11 Jun 1999, 05:52 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00741" HREF="msg00741.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Petri Virkkula <a href="mailto:pvirkkul#iki,fi">pvirkkul#iki,fi</a>, Fri 11 Jun 1999, 04:09 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00734" HREF="msg00734.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
J C Lawrence <a href="mailto:claw#varesearch,com">claw#varesearch,com</a>, Fri 11 Jun 1999, 02:35 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00667" HREF="msg00667.html">RE: [MUD-Dev] Text Parsing</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Thu 10 Jun 1999, 03:49 GMT
<UL>
<LI><strong><A NAME="00680" HREF="msg00680.html">RE: [MUD-Dev] Text Parsing</A></strong>, 
Matthew Mihaly <a href="mailto:diablo#best,com">diablo#best,com</a>, Thu 10 Jun 1999, 06:13 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00693" HREF="msg00693.html">RE: [MUD-Dev] Text Parsing</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Thu 10 Jun 1999, 14:53 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00335" HREF="msg00335.html">[MUD-Dev] Searching the archives</A></strong>, 
claw <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Fri 28 May 1999, 06:10 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>