[Encore] Updates at the Barn including a great speed optimization tip!
Kevin Jepson
kevijeps at telusplanet.net
Sat Sep 9 12:09:23 MDT 2006
Good Afternoon
I just finished adding a couple of new items to the Barn.
If you haven't checked it out lately (hint hint) I've been posting cool
info, tips and tricks from the archives of this list.
HYPERLINK
"http://www.encore-consortium.org/Barn/default.htm"http://www.encore-consort
ium.org/Barn/default.htm
I want to bring to your attention the one I added today.
It is a very interesting optimization tip I found in the enCore list from
August of 2002!
It is a post by Alexandre Borgia about changing the $login.current_lag to 0
from its default value of 6.
This has the effect of really speeding up MOOs based on the enCore core.
Anytime a verb suspends it will wait for 6 SECONDS. Once this change is made
the verbs return right away!
Please read Alexandre's post linked at the Barn for more info as to why this
happens.
I suspect it would also speed up any lambdaMOO core based MOOs as well
(interestingly the current LambdaMOO core has this value at 0 by default).
I checked and the default setting in a clean V4 core is still "6".
When tested on a very large database a search that normally takes 15 seconds
takes less than 1.
The busier the MOO and the larger the database the bigger benefit one gets
from this optimization.
When discussed on this list back in 2002 there didn't appear to be any
downsides and Jan recommended that all "small and medium" moos make the
change.
>From what I can see I don't think there would be any problems with this even
for large MOOs.
I'm interested in any feedback on potential problems this optimization might
cause.
One that comes to mind might be a problem with synchronization if custom
verbs have been coded to account for the 6 second delay that exists by
default.
Please let me know, on list or off, if you know of any gotchas with this
optimization.
The other update was a suggestion by Alexandre on how to make it possible to
specify a room as being able to accept exits regardless of ownership.
Lot's of other cool info there so please check it out.
Feedback and comments welcome.
Have good weekend!
Ciao
KJ
=======================================================
Kevin Jepson R.E.T.
President
4K Consulting Inc.
An't nanum hearm deth, doth hwaet ye willath.
Email: kevijeps at telusplanet.net
=======================================================
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 08/09/2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/encore_encore-consortium.org/attachments/20060909/817fb34c/attachment.html
More information about the Encore
mailing list