summaryrefslogtreecommitdiff
path: root/codecs/codec_alaw.c
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-12-01 09:29:43 -0500
committerSean Bright <sean.bright@gmail.com>2017-12-01 08:40:56 -0600
commit3af6c1b4bc9bf910fb27c01e5a28c2de0095fa22 (patch)
tree22325b09fa23c9bd5162d8f0a6424ef19e1595e1 /codecs/codec_alaw.c
parentb4bbe04898c8a1aa577f1dbf279dde1677facb8b (diff)
config: Speed up ACO & sorcery initialization
When starting Asterisk in the foreground, there is a perceptible delay when loading modules that use the ACO and sorcery config frameworks. For example, a lightly configured res_pjsip took 853ms to load on my VM. I tracked down the slowness to the XPath queries used to associate the relevant documentation with the config options. One improvement was adding a call to xmlXPathOrderDocElems after loading an XML document. From the libxml2 docs: Call this routine to speed up XPath computation on static documents. The second change was to remove recursive descent and wildcard operators from the XPath queries. After these changes, res_pjsip takes 85ms to load on my VM and there is no longer a perceptible delay when starting Asterisk in the foreground. Change-Id: I45d457f1580e26bf5a2b0dab16e8e9ae46dcbd82
Diffstat (limited to 'codecs/codec_alaw.c')
0 files changed, 0 insertions, 0 deletions