[OpenSIPS-Devel] [OpenSIPS/opensips] 20a962: dialog: Various small code/performance improvements
Liviu Chircu
noreply at github.com
Fri Sep 27 04:23:52 EDT 2019
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 20a962a23879d66007bd5fdcbf1e314c5181d1cc
https://github.com/OpenSIPS/opensips/commit/20a962a23879d66007bd5fdcbf1e314c5181d1cc
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
More information about the Devel
mailing list