[Asterisk-code-review] main/pbx: Improve performance of dialplan reloads with large... (asterisk[13])

Mark Michelson asteriskteam at digium.com
Thu Apr 30 15:15:55 CDT 2015


Mark Michelson has posted comments on this change.

Change subject: main/pbx: Improve performance of dialplan reloads with large numbers of hints
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.asterisk.org/#/c/312/1/main/pbx.c
File main/pbx.c:

Line 1152: 		dev_iter = ao2_t_callback(hintdevices, OBJ_SEARCH_KEY | OBJ_MULTIPLE,
         : 			hintdevice_cmp_multiple, device, "find devices in container");
> Unless you use OBJ_MULTIPLE with ao2_callback() you don't need to use CMP_S
He is using OBJ_MULTIPLE. But I still think CMP_STOP isn't useful here because I'm not sure how you're supposed to know when to stop. Just return CMP_MATCH and let the astobj2 code determine when to stop. Since you're passing a key, presumably the traversal should stop once all items in the hashed bucket have been traversed.


-- 
To view, visit https://gerrit.asterisk.org/312
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Iedfc97a69d21070c50fca42275d7b3e714e59360
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list