]> 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:18:04 +0000 (11:18 -0500)
commit455ca1095e525de6c4c6a98a0dce1a8ee3042189
tree25de3ef4ce2d656c1ff1a7b6d1f11b61e1a2ee70
parentdb765cea68c5fa4619141892ad6c77200e577570
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