Re: Zone resets

From: Fizal (
Date: 06/21/00

At 09:23 AM -0500 20/6/2000 , Patrick Dughi wrote:

>        I haven't made up my mind about this.  I was tempted to go with
>standalone instances.  It does make much of life easier, and I prefer to
>think that I'm saving enough memory elsewhere to have the liberty to spend
>it here.  This will be slightly modified by a suggestion from the same
>people who introduced me to the idea of the binary tree world structure, a
>new field  - number of items.  That way, if you have 20 waybreads, it's
>merely one item with an additional field, combined in the same way the
>mob/obj stacking snippets do.  It was pointed out that aside from 12-20
>items for worn equipment, a small number of collected items from the
>current zone, most of an  adventurer's inventory is food, drink, copies of
>scrolls/potions/etc.  Most characters do not hold 100 unique items.

Hmm... sounds like what SMAUG or some other codebase is doing. So, if one
of the waybreads is poisoned and another is cursed, they are considered
unique and listed separately from the rest?

>> If you want more bang for the buck, switch out room and mob long
>> That's where most of your memory will be recovered, and you don't generally
>> search descriptions anyway.
>        Another teriffic idea.  I'll have to see how this works - though,
>aren't mob long descs still just pointes to the original string?

It will still work. I used George's world swap snippet that dumps room desc
into a binary file, and changed it to include not only mob and obj long
desc, but also the extra desc as well. Together with the advice from Dak to
mmap() the whole thing, it seems to go smoothly, and uses less memory.
People don't really look at the room, mob and obj long desc most of the
time, and extra desc even less. But Sammy is right about room desc taking
up a lot of memory. However, if you have builders like me who likes to
fantasize and elaborate as much as possible for mobs and obj, taking those
out can still save you a significant amount....


Afizal Mustapa
Petaling Jaya, Selangor, Malaysia.

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

This archive was generated by hypermail 2b30 : 04/10/01 PDT