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(a)aptela.com
Aptela, Inc.
http://www.aptela.com
"Aptela: How Business Answers The Call"
*******************************************
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users