asterisk/res/parking
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
..
parking_applications.c Cache string values of formats on ast_format_cap() to save processing. 2013-10-03 14:58:16 +00:00
parking_bridge.c res_parking: Unit tests 2013-08-05 16:00:01 +00:00
parking_bridge_features.c Multiple revisions 399887,400138,400178,400180-400181 2013-09-30 18:55:27 +00:00
parking_controller.c A great big renaming patch 2013-07-25 04:06:32 +00: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 Multiple revisions 399887,400138,400178,400180-400181 2013-09-30 18:55:27 +00:00
parking_tests.c Restore Dial, Queue, and FollowMe 'I' option support. 2013-09-13 22:19:23 +00:00
parking_ui.c Strip down the old event system 2013-08-17 14:39:27 +00:00
res_parking.h Allow res_parking to be unloadable 2013-08-17 15:01:54 +00:00