|
adamandkate Wanderer
Joined: 14 Oct 2009 Posts: 57
|
Posted: 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?
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
|
|
|
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
|
|