Which is more efficient? if (uri=~"^sip:foo.*") { or if (avp_check("$rU", "re/^foo/i")) {
And, in the long run, given Amdahl's law, does it even matter?
Enquiring minds want to know
Hi,
I would say second is a bit faster as you have a smaller regexp (easier to eval) and a shorter string to match against the regexp.
regards, bogdan
Mahesh Paolini-Subramanya wrote:
Which is more efficient? if (uri=~"^sip:foo.*") { or if (avp_check("$rU", "re/^foo/i")) {
And, in the long run, given Amdahl's law, does it even matter?
Enquiring minds want to know
--
Mahesh Paolini-Subramanya (703) 386-1500 x9100 CTO mahesh@aptela.com Aptela, Inc. http://www.aptela.com "Aptela: How Business Answers The Call"
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users