[OpenSIPS-Users] Code
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri May 1 17:33:21 CEST 2009
Actually it is a performance difference between:
(method == "INVITE") does a string comparison, so slower
(is_method("INVITE")) does an ID/integer comparison, so faster
Regards,
Bogdan
Brett Nemeroff wrote:
> I *think* programing style. :)
>
> I'd be interested in knowing if there is a performance improvement for
> one versus the other.
> -Brett
>
>
> On Fri, May 1, 2009 at 10:21 AM, Michael Ciupka
> <opensips at michael-ciupka.de <mailto:opensips at michael-ciupka.de>> wrote:
>
> Hello,
>
>
> what are the difference between the two commands:
> 1. if (method == "INVITE")
> 2. if (ismethod("INVITE"))
>
> i hope somebody can help me.
>
> Regards
> Michael
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list