[Asterisk-code-review] stasis: Reduce calculation of stasis message type hash. (asterisk[13])

Joshua Colp asteriskteam at digium.com
Mon Aug 6 11:17:31 CDT 2018


Hello Richard Mudgett, Jenkins2, 

I'd like you to reexamine a change. Please visit

    https://gerrit.asterisk.org/9823

to look at the new patch set (#2).

Change subject: stasis: Reduce calculation of stasis message type hash.
......................................................................

stasis: Reduce calculation of stasis message type hash.

When the stasis cache is used a hash is calculated for
retrieving or inserting messages. This change calculates
a hash when the message type is initialized that is then
used each time needed. This ensures that the hash is
calculated only once for the message type.

Change-Id: I4fe6bfdafb55bf5c322dd313fbd8c32cce73ef37
---
M include/asterisk/stasis.h
M main/stasis_cache.c
M main/stasis_message.c
3 files changed, 17 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/23/9823/2
-- 
To view, visit https://gerrit.asterisk.org/9823
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I4fe6bfdafb55bf5c322dd313fbd8c32cce73ef37
Gerrit-Change-Number: 9823
Gerrit-PatchSet: 2
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180806/f9bfeb59/attachment.html>


More information about the asterisk-code-review mailing list