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                                         [EMAIL PROTECTED]
Aptela, Inc.                               http://www.aptela.com
"Aptela: How Business Answers The Call"
*******************************************

------------------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to