[asterisk-bugs] [JIRA] (ASTERISK-24297) cdr.c: Minor code optimizations.
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Wed Aug 8 10:17:02 CDT 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-24297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-24297:
-------------------------------------
Target Release Version/s: 16.0.0
> cdr.c: Minor code optimizations.
> --------------------------------
>
> Key: ASTERISK-24297
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24297
> Project: Asterisk
> Issue Type: Improvement
> Security Level: None
> Components: CDR/General
> Affects Versions: 12.5.0, 13.0.0-beta1
> Reporter: Richard Mudgett
> Target Release: 13.19.0, 15.2.0, 16.0.0
>
>
> From https://reviewboard.asterisk.org/r/3964/ I made a couple code optimization suggestions.
> In bridge_candidate_process():
> * Nothing cares about the return value.
> * The RAII_VAR and SCOPED_AO2LOCK can easily be eliminated by changing the "return 0" statements in the for loop to breaks.
> In handle_standard_bridge_enter_message():
> * There is a tail recursion that could be eliminated by pulling the main for loop in the function into its own routine. Then the cdr lock also won't be recursively obtained.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list