asterisk/addons
Mark Michelson ee21eee7e0 Cache string values of formats on ast_format_cap() to save processing.
Channel snapshots have string representations of the channel's native formats.
Prior to this change, the format strings were re-created on ever channel snapshot
creation. Since channel native formats rarely change, this was very wasteful.
Now, string representations of formats may optionally be stored on the ast_format_cap
for cases where string representations may be requested frequently. When formats
are altered, the string cache is marked as invalid. When strings are requested, the
cache validity is checked. If the cache is valid, then the cached strings are copied.
If the cache is invalid, then the string cache is rebuilt and copied, and the cache
is marked as being valid again.

Review: https://reviewboard.asterisk.org/r/2879
........

Merged revisions 400356 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-10-03 14:58:16 +00:00
..
ooh323c Fix remote tcs sequence handling on empty tcs received 2013-09-03 20:28:01 +00:00
Makefile Title update 2012-10-14 21:56:13 +00:00
app_mysql.c Clean up app_mysql's application entry points to properly parse arguments 2013-01-02 22:19:32 +00:00
app_saycountpl.c Opaquify channel stringfields 2012-01-24 20:12:09 +00:00
cdr_mysql.c Make cdr_mysql compile again by not directly setting the run-time CDR object 2013-06-17 03:31:19 +00:00
chan_mobile.c Cache string values of formats on ast_format_cap() to save processing. 2013-10-03 14:58:16 +00:00
chan_ooh323.c Cache string values of formats on ast_format_cap() to save processing. 2013-10-03 14:58:16 +00:00
chan_ooh323.h add ast_publish_channel_state according new event framework 2013-05-19 20:52:34 +00:00
format_mp3.c format_mp3: Fix a possible crash in mp3_read(). 2012-05-12 00:03:42 +00:00
ooh323cDriver.c Added direct media support to ooh323 channel driver 2012-07-04 21:42:05 +00:00
ooh323cDriver.h Merged revisions 308242 via svnmerge from 2011-02-18 00:11:06 +00:00
res_config_mysql.c Add support for a realtime sorcery module. 2013-04-27 12:01:29 +00:00