[OpenSIPS-Devel] [OpenSIPS/opensips] 43a733: dialog: Various small code/performance improvements
Liviu Chircu
noreply at github.com
Fri Sep 27 04:39:27 EDT 2019
Branch: refs/heads/2.4
Home: https://github.com/OpenSIPS/opensips
Commit: 43a733bee0fc2048a7efc56fe26cc951ceb6ecd0
https://github.com/OpenSIPS/opensips/commit/43a733bee0fc2048a7efc56fe26cc951ceb6ecd0
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