asterisk/pbx
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
..
ael/ael-test Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
Makefile Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
dundi-parser.c Merge "pbx_dundi: Added IPv6 support for dundi" 2018-08-27 09:38:15 -05:00
dundi-parser.h pbx_dundi: Added IPv6 support for dundi 2018-08-17 16:03:14 -05:00
pbx_ael.c loader: Add dependency fields to module structures. 2018-01-15 13:25:51 -05:00
pbx_config.c pbx_config: Only the first [globals] section is seen. 2018-11-08 06:43:10 -05:00
pbx_dundi.c Merge "pbx_dundi: Added IPv6 support for dundi" 2018-08-27 09:38:15 -05:00
pbx_loopback.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
pbx_lua.c pbx_lua: Support displaying lua error message if no debug table exists 2018-04-30 10:31:34 +02:00
pbx_realtime.c stasis: Segment channel snapshot to reduce creation cost. 2018-11-26 12:56:24 -06:00
pbx_spool.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00