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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
mortie
Wanderer


Joined: 26 Sep 2002
Posts: 73
Location: United Kingdom

PostPosted: Sat Feb 07, 2004 1:06 pm   

trigger memory usage
 
Hi,

A couple of questions.

Do all triggers wether they are disabled or enabled get loaded into memory?

secondly,

Which is more efficient

having a trigger where you use

({@pattern})

and stick all the patterns you want to match in a variable list.

or

Having a trigger for each pattern.

The variable list might contain a 100 items.Would this slow things down as it needs to check each time if its in the list?

thanks
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Feb 07, 2004 5:09 pm   
 
Do all triggers whether they are disabled or enabled get loaded into memory?
Yes.

Which is more efficient? My understanding is that:
Individual triggers will process faster.
A list variable pattern will require less memory.

You aren't likely to notice the speed difference on most computers unless you are running benchmark tests.
Reply with quote
mortie
Wanderer


Joined: 26 Sep 2002
Posts: 73
Location: United Kingdom

PostPosted: Sat Feb 07, 2004 5:58 pm   
 
Thanks for the info
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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