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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
adamandkate
Wanderer


Joined: 14 Oct 2009
Posts: 57

PostPosted: Tue May 11, 2010 10:07 am   

Improving speed, Would using ^ and $ help?
 
Ive been working for a while to improve the speed of my system. I got some improvements a while ago by disabling unwanted triggers, but i was no wondering would adding ^ and $ to my triggers where possible make it show a speed increase?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2307

PostPosted: Tue May 11, 2010 2:14 pm   
 
Possibly, yes. Each trigger is internally a regex which tries to match anywhere in the line, and stops trying when it explicitly fails. If it is anchored, non-matches will usually fail faster. Be certain, though, that the patterns really do always appear at the beginning or end of the mud line.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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