Re: Circlemud design issues

From: George (greerga@CIRCLEMUD.ORG)
Date: 04/20/98

On Mon, 20 Apr 1998, ;P wrote:

>> You cannot inline every function.
>with..for instance, what's inlining? i'm guessing that it somehow marks
>certain functions as being used more often and thus makes them faster or
>more this accurate?

Instead of making the code set up a new stack and jump to the function
(because jumping is expensive), the resulting assembly from the 'inline'
function is simply placed right into the calling function.

>one thing i'd suggest to improve stock circle is perhaps changing the
>command array into a hash table..has this been discussed before? i know
>that this was done for at least one other mud base that i looked at..

That hasn't been changed because people don't type fast enough for that to
cause any significant slowdown.  Although if anyone has a clean
implementation for it, it may be considered.

A lot of things aren't in because they haven't been suggested or weren't
quite what was wanted.

George Greer  -   | Genius may have its limitations, but stupidity | is not thus handicapped. -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST