Keyword & Performance/Speed

Keyword & Performance/Speed SearchSearch
Author Message
Ramon Sazon
New member
Username: Ramonsazon

Post Number: 24
Registered: 08-2006
Posted on Saturday, April 07, 2007 - 07:29 am:   

Hi Bryce,

Is there a limit on how many 2-way keywords I setup with NOWSMS? Is there performance/speed degradation if I add too many keywords? Let's say, for example, 100 keywords?

Thanks again!
RS
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7070
Registered: 10-2002
Posted on Monday, April 09, 2007 - 08:18 pm:   

Hi Ramon,

We have only tested up to 500, however there is no hard-coded limit.

There should not be any noticeable performance degradation ... unless you got into the thousands. The list is cached in memory, but NowSMS does evaluate each message against all defined conditions to find the best match. Comparing against 500 is not a big deal for modern CPUs. But it could become significant when you talk about thousands of entries.

Note that if you are receiving large volumes of messages ... more than 2 or 3 per second ... you may want to allocate more processing threads to the 2-way command processor. To do this, edit SMSGW.INI, and under the [SMSGW] header add 2WayThreadCount=## ... where ## is the number of threads to allocate.

The reason to allocate more threads is because when NowSMS executes a 2-way command, it waits for that command to complete before processing the next message. So there is typically more time spent by NowSMS waiting for the response than there is in the bit of processing that NowSMS performs against the message.

-bn
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7071
Registered: 10-2002
Posted on Monday, April 09, 2007 - 08:19 pm:   

Ooops ... a typo ... that should be 2WaySMSThreadCount=## in the above message.
Ramon Sazon
New member
Username: Ramonsazon

Post Number: 25
Registered: 08-2006
Posted on Wednesday, April 11, 2007 - 10:46 am:   

Hey Bryce,

What's a good number to put in the 2WaySMSThreadCount? What is the default set to now so I can decide how much more to increase it with?

Also, does NOWSMS support wildcard characters? The reason I ask is a lot of my keywords are pretty similar and pointing to the same executable. I searched the Board and found someone requested it before but you guys were working on something else at that time so were unable to implement it. If you have, does version 5.51 b20040823 version have it?

I appreciate your help. More power!
RS
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7087
Registered: 10-2002
Posted on Wednesday, April 11, 2007 - 08:55 pm:   

It really depends on how fast your 2-way script is. If it takes more than a second to run, or the web server it is on is slow ... then that becomes a delay.

Then you have to consider whether having multiple instances of the script running simultaneously is good or not. In some cases, that might just tie up processing power and ultimiately slow things down.

3 to 5 is good.

Regarding wildcards ... we support both "?" (match exactly 1 character) or "*" (match 0 or more characters). I'm not sure if v5.51 only supported "*" at the end of the keyword. That version probably had support for both "*" and "?".

-bn