]> 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:44 +0000 (11:17 -0500)
commit78e619226216baf70f71f975c5b869ea4c8cd4ae
treea52d5c68297365ecbeae0c847f672ba7b95a0163
parent42998bff90c8fb863c1c8d109397221ab600a762
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