Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Shan
Newbie


Joined: 28 Jan 2006
Posts: 4

PostPosted: Sun Sep 24, 2006 3:37 pm   

[1.07] Pattern matching speed
 
I have just done a quick comparison of speed between ZMUD 7.21 and CMUD 1.07, and I've come up with some disquieting results. Here's what I did:

I created 1000 regex triggers, with patterns ^1, ^2, ^3, ..., ^1000 and no actions, on an otherwise blank file. I then performed the CTRL+Q speed test. ZMUD 7.21's result was around 26, whereas CMUD's was about 80. Same was true of patterns styled ^a, ^aa, ^aaa...

Similarly, the settings file I ordinarily use for my MUDding (therefore one that's closer to how a typical settings file looks than my artificial example) has scored 15 in ZMUD's CTRL+Q test, and over 45 in CMUD's one. The slowdown is also very much visible, so it's not just abstract numbers.

I haven't run further tests and the method might be flawed, but if CMUD does indeed take three times as long as ZMUD to match patterns, I for one have serious doubts regarding it's practicality - when the CTRL+Q score of a settings file exceeds 30 it's becoming increasingly unpleasant to play with.
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Sun Sep 24, 2006 4:51 pm   
 
i still have to dig into this one however let me proceed by saying a few things

1.) its beta and bugs are being worked out. So a lot of times you end up with a debug compilation rather than a "Release"
2.) with the number of changes to syntax and commands it could be as simple as readjusting your file.
i.e. i had to use %int(%1) to get my #MATH command to work or it changed my variable to a string and added to it.
3.) Keep also in mind that there are settings like the refresh of the screen and delay time before commands are sent that can also hinder those results.
4.) there are many MUD settings that can affect the overall performance as well.

Not saying your testing is inaccurate. Personally for me it appears just as fast. Course i have a really powerful machine so thats one area i dont pretend to comment about when it comes to real time performance on low-mid grade pcs.

also please remember as zugg gets problems resolved and its not processing bugs and other checks and balances it will speed up quite a bit. Optimization comes after bugs are worked out.

Just some thoughts for you.
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
slicertool
Magician


Joined: 09 Oct 2003
Posts: 459
Location: USA

PostPosted: Sun Sep 24, 2006 5:15 pm   
 
Agreed. This is still in beta. The whole point at the moment is bugs. Speed fixes will happen extremely late in the beta and things won't be optimized until Zugg is sure they'll work.

Why have all of the speed adjustments and optimizations in when there are bugs to work on?
_________________
Ichthus on SWmud: http://www.swmud.org/
Reply with quote
Shan
Newbie


Joined: 28 Jan 2006
Posts: 4

PostPosted: Sun Sep 24, 2006 5:22 pm   
 
Yes, I realize it's a beta, I was just curious whether this speed problem (if there indeed is a problem and it's not just a matter of my testing being skewed) is known and planned to be adressed somewhere down the line. I quite agree that fixing bugs should take priority.
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Sun Sep 24, 2006 10:33 pm   
 
I have written a small test trigger to help test this that should work in both zMUD and cMUD:
#alias test {
#echo Removing old test triggers...
#delclass testtriggers
#echo Creating test triggers...
#loop 1000 {#exec {#trig {test%i} {} testtriggers}}
#echo Done.
}
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Sep 25, 2006 4:39 am   
 
As others have already said, we are too early in the testing process to worry much about performance. I'm well aware of the performance issues and they will be dealt with closer to the public release. Right now the current build is a "debug build" and my focus is on bug fixing and not performance tuning. As others have said, it makes no sense to performance tune code until the code works correctly in the first place.
Reply with quote
Shan
Newbie


Joined: 28 Jan 2006
Posts: 4

PostPosted: Mon Sep 25, 2006 7:51 am   
 
Right, silly of me not to have thought of it. Thanks for the reassurance and keep up the good work!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net