OLC has the reset_room function.  I doubt many dont use OLC.

I can see a definite speedup with rooms here.  as you dont have the call to
see if the vnum exists.

I am going to have to think on this some.  replacing hashing can speed
things up.  String hashing does combining.  That may improve things a bit.

Er off to work..  heh

Chris

----- Original Message ----- 
From: "Jason Gauthier" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, July 22, 2003 8:14 AM
Subject: RE: Simple Performance Speedup.


>
> void reset_area(AREA_DATA * pArea)
> {
>    long vnum;
>    for (vnum = pArea->min_vnum; vnum <= pArea->max_vnum; vnum++) {
>        if (pRoomArray[vnum]){
>              reset_room(pRoomArray[vnum]);
>         }
>     }
>     return;
> }
>
> I think you can assume from your own code what reset_room does.
>
>
> Now for performance, I would recommend threading here, but it's a
difficult
> task. One I've not accomplished.
>
>
> >
> > -----Original Message-----
> > From: Chad Simmons [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, July 22, 2003 2:23 AM
> > To: [email protected]
> >
> >
> > --- "Chris \"Winston\" Litchfield" <[EMAIL PROTECTED]> wrote:
> > > Anyone got a faster "reset_room" function?  Its one of the
> > hogs of the
> > > system.
> >
> > Sorry, ROM doesn't have a reset_room function. If you can
> > show what yours looks like (and where it's being called) I
> > might be able to give some help.
> >
> > Thanks,
> > ~Kender
> >
> > =====
> > -----BEGIN GEEK CODE BLOCK-----
> > Version 3.1
> > GCS/L/C/O d-(+) s++: a-- C+++$>++++ UBLS++++$
> > P+++(--)$ L+++>++++ E--- W+>++$ N !o K? w(--) !O
> > M- !V PS+ PE(++) Y+ PGP->+ t+ 5 X+() R(+) tv+@
> > b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++
> > ------END GEEK CODE BLOCK------
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design
> > software http://sitebuilder.yahoo.com
> >
> > --
> > ROM mailing list
> > [email protected]
> > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> >
>
> -- 
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>
>



Reply via email to