[OpenSIPS-Devel] [OpenSIPS/opensips] 7d0df2: ut.h: Fix str_casematch() implementation

Liviu Chircu noreply at github.com
Tue Jul 21 18:38:28 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 7d0df27a40d9bd0207637ec08e5deb662c45bbf6
      https://github.com/OpenSIPS/opensips/commit/7d0df27a40d9bd0207637ec08e5deb662c45bbf6
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-07-21 (Tue, 21 Jul 2020)

  Changed paths:
    M ut.h

  Log Message:
  -----------
  ut.h: Fix str_casematch() implementation

Since str's have a known length, we should not stop the iteration at
'\0'.


  Commit: c13786c43c0123cfbd7dd310c41d7ba17604014c
      https://github.com/OpenSIPS/opensips/commit/c13786c43c0123cfbd7dd310c41d7ba17604014c
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-07-21 (Tue, 21 Jul 2020)

  Changed paths:
    M route.c

  Log Message:
  -----------
  Expression evaluator: Improve code performance

    * evaluate comparisons against network addresses (NET_ST) last,
      since they are rarer than string / int comparisons
    * use switch instead of if/else if/else if
    * speed up comp_s2s() code


Compare: https://github.com/OpenSIPS/opensips/compare/aaf99dc6bc38...c13786c43c01



More information about the Devel mailing list