]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis: Reduce calculation of stasis message type hash.
authorJoshua Colp <jcolp@digium.com>
Mon, 6 Aug 2018 11:36:22 +0000 (08:36 -0300)
committerJoshua Colp <jcolp@digium.com>
Mon, 6 Aug 2018 16:17:54 +0000 (11:17 -0500)
commit5030756bfad624fe10569c155e7483d44f96aa52
tree608f671708b91fac78444f02b6e528ead3307b5d
parentfcece326ed27a9ab7222660ae27f0ce25ab5301b
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
include/asterisk/stasis.h
main/stasis_cache.c
main/stasis_message.c