Re: [SR-Users] Performance impact with AVP and VAR's

2014-02-20 Thread Carlos Ruiz Díaz
Maybe you should replace AVPs with VARs where needed. Vars are more lightweight and with a per-process scope only. Regards, On Thu, Feb 20, 2014 at 9:38 PM, Ovidiu Sas wrote: > AVPs are in shared men and protected by locks. VARs are not. > There shouldn't be a big impact on using lots of them.

Re: [SR-Users] Performance impact with AVP and VAR's

2014-02-20 Thread Ovidiu Sas
AVPs are in shared men and protected by locks. VARs are not. There shouldn't be a big impact on using lots of them. Are you experiencing any issues? Regards Ovidiu Sas On Feb 20, 2014 7:32 PM, "Jijo" wrote: > We have defined dedicated AVP variables for each feature. For example, SIP > Trunks or

Re: [SR-Users] Performance impact with AVP and VAR's

2014-02-20 Thread Jijo
We have defined dedicated AVP variables for each feature. For example, SIP Trunks or Subscribers or Media Handling or Header Manipulation etc, So the no of variables (AVP) has been increased in the initialization. At an instance the no of AVP's used/active might be quite low as each avp's are dedi

Re: [SR-Users] Performance impact with AVP and VAR's

2014-02-20 Thread Ovidiu Sas
or a dedicated module :) On Feb 20, 2014 5:38 PM, "Alex Balashov" wrote: > Can you give some example of your use cases for them? > > I cannot say for sure, but my intuition is that if you have three hundred > variables in any program, you're doing something wrong. At that point > you're in territ

[SR-Users] Performance impact with AVP and VAR's

2014-02-20 Thread Jijo
Hi All, I have around 300 AVP's and quite amount of VAR's are used in the config file? Does that impact performance?, If so how can i improve it? Thanks Jijo ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip

Re: [SR-Users] Performance impact with AVP and VAR's

2014-02-20 Thread Alex Balashov
Can you give some example of your use cases for them? I cannot say for sure, but my intuition is that if you have three hundred variables in any program, you're doing something wrong. At that point you're in territory that clearly calls for some sort of non- scalar data structure, such as an