Re: Just wondering, anyone as insane as Hades?

From: Brian Pape (bpape@ezl.com)
Date: 04/10/96


> Well why would it have to search the files lineraly? To find the target
> room? Already though of that. When the world boots up it creates
> world_index[]. All world index is is a structure array (kinda like how the
> world used to be set up) and when you give it a vnum like so:
> world_index[1031].room that is a pointer to room vnum 1031, so there is no
> searching on zone resets, which is even FASTER than real_room because even
> real_room had to hit a for loop to do a binary search, whereas world_index
> just throws me a pointer without any searching.

In that case, if you have a room with vnum 80,000, you'd have at least
80,000 entries in your world_index...  Processor time is a lot cheaper
than swapping memory.

Brian Pape
bpape@ezl.com



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