[Users] regexp and performance...
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Dec 5 09:08:45 CET 2006
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 at aptela.com
> Aptela, Inc. http://www.aptela.com
> "Aptela: How Business Answers The Call"
> *******************************************
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>
More information about the sr-users
mailing list