asterisk/res/parking
Joshua Colp 50ac85cb40 stasis: Segment channel snapshot to reduce creation cost.
When a channel snapshot was created it used to be done
from scratch, copying all data (many strings). This incurs
a cost when doing so.

This change segments the channel snapshot into different
components which can be reused if unchanged from the
previous snapshot creation, reducing the cost. In normal
cases this results in some pointers being copied with
reference count being bumped, some integers being set,
and a string or two copied. The other benefit is that it
is now possible to determine if a channel snapshot update
is redundant and thus stop it before a message is published
to stasis.

The specific segments in the channel snapshot were split up
based on whether they are changed together, how often they
are changed, and their general grouping. In practice only
1 (or 0) of the segments actually get changed in normal
operation.

Invalidation is done by setting a flag on the channel when
the segment source is changed, forcing creation of a new
segment when the channel snapshot is created.

ASTERISK-28119

Change-Id: I5d7ef3df963a88ac47bc187d73c5225c315f8423
2018-11-26 12:56:24 -06:00
..
parking_applications.c stasis: Segment channel snapshot to reduce creation cost. 2018-11-26 12:56:24 -06:00
parking_bridge.c res_parking: Misc fixes. 2016-03-25 18:28:31 -05:00
parking_bridge_features.c stasis: Segment channel snapshot to reduce creation cost. 2018-11-26 12:56:24 -06:00
parking_controller.c res_parking: Add dialplan function for lot channel 2018-07-10 11:03:01 -05:00
parking_devicestate.c res_parking: Add parking_devicestate.c left out from previous commit 2013-06-07 20:51:19 +00:00
parking_manager.c stasis: Add internal filtering of messages. 2018-11-18 15:08:16 -05:00
parking_tests.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
parking_ui.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
res_parking.h res_parking: Add dialplan function for lot channel 2018-07-10 11:03:01 -05:00