]> 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:05:56 +0000 (13:05 -0300)
commit856b6d19543b58864e32be811e9ce7efe14da431
treebc0f2cf3dc415e9746fcafab4c8ce0b96365d916
parent80567a67d99ffe11c6392a2deda27d3ec80687f7
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