asterisk/res/res_pjsip
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
..
include pjsip: Rewrite OPTIONS support with new eyes. 2018-04-27 17:28:16 -05:00
config_auth.c res_pjsip: Implement additional SIP RFCs for Google Voice trunk compatability 2018-10-24 07:51:25 -05:00
config_domain_aliases.c res_pjsip: Make pjlib.h consistently included. 2018-08-03 16:07:22 -05:00
config_global.c res_pjsip_session: add new flag use_callerid_contact 2018-10-26 10:39:03 +02:00
config_system.c pjproject: Upgrade to 2.8. 2018-09-18 11:32:18 -05:00
config_transport.c astobj2: Remove legacy ao2_container_alloc routine. 2018-11-21 09:56:16 -05:00
location.c res_pjsip: improve realtime performance on CLI 'pjsip show contacts' 2018-09-28 17:09:33 -05:00
pjsip_cli.c pjsip: Improve CLI completion performance 2017-12-10 12:57:24 -06:00
pjsip_configuration.c stasis: Segment channel snapshot to reduce creation cost. 2018-11-26 12:56:24 -06:00
pjsip_distributor.c res_pjsip: Send a 503 response when overload state if reliable transport. 2018-11-07 07:59:03 -05:00
pjsip_global_headers.c Remove redundant module checks and references. 2018-01-24 13:37:29 -05:00
pjsip_message_filter.c Remove redundant module checks and references. 2018-01-24 13:37:29 -05:00
pjsip_options.c Merge "res_pjsip: Reduce processing when a Contact is updated." 2018-08-22 12:42:46 -05:00
pjsip_resolver.c pjproject_bundled: Fix for Solaris builds. Do not undef s_addr. 2018-08-03 16:59:03 -05:00
pjsip_scheduler.c Merge "pjsip_scheduler.c: Add ability to trace scheduled tasks." 2018-04-16 07:11:26 -05:00
pjsip_session.c Remove redundant module checks and references. 2018-01-24 13:37:29 -05:00
pjsip_transport_events.c pjsip_transport_events.c: Fix crash using stale transport pointer. 2018-03-28 16:20:11 -06:00
pjsip_transport_management.c astobj2: Remove legacy ao2_container_alloc routine. 2018-11-21 09:56:16 -05:00
presence_xml.c res_pjsip_pidf_eyebeam_body_supplement: Correct status presentation 2017-08-01 15:42:38 -06:00
security_events.c security-events: Fix SuccessfulAuth using_password declaration. 2017-12-04 17:21:27 -06:00