[OpenSIPS-Devel] [OpenSIPS/opensips] 61b23a: dialog: Various small code/performance improvements

Liviu Chircu noreply at github.com
Fri Sep 27 04:39:44 EDT 2019

  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 61b23a50c735569f212a38641cb61c7a8dc93ff4
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-09-27 (Fri, 27 Sep 2019)

  Changed paths:
    M modules/dialog/dlg_handlers.c
    M modules/dialog/dlg_hash.c
    M modules/dialog/dlg_hash.h
    M modules/dialog/dlg_profile.c
    M modules/dialog/dlg_profile.h
    M modules/dialog/dlg_repl_profile.h
    M modules/dialog/dlg_replication.c
    M modules/dialog/dlg_req_within.c

  Log Message:
  dialog: Various small code/performance improvements

    * remove redundant "is_replicated" function parameter
    * speed up profile hash computation
        (size is always 2^N, see new_dlg_profile() -> we can do bit AND)
    * shorten cookie-cutter code with add_last() and str_cpy()
    * fix over-complicated if condition
    * do not leak PKG memory on some error case
    * remove useless comment

(cherry picked from commit 20a962a23879d66007bd5fdcbf1e314c5181d1cc)

More information about the Devel mailing list