diff options
author | Corey Farrell <git@cfware.com> | 2017-12-06 13:42:55 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-12-06 23:35:42 -0600 |
commit | 48fce66bcf6fcd123e6250230842c43772d9aa6a (patch) | |
tree | f7d4fb5897e59ba8f084224348eb823cbc21f008 /rest-api-templates/README.txt | |
parent | f28fdb46f152e6ddf632bdfcd1750d8402697d20 (diff) |
media_index: Improve startup.
This eliminates some wasteful operations in media_index startup.
* Replace statically set string-fields with char[0].
* Eliminate pointless RAII_VAR's.
* alloc_variant: Avoid pointless ao2_find on new info->variant.
* Stop trying find_variant before alloc_variant.
* process_media_file: replace ast_str with ast_asprintf. This avoids
reallocation of file_id_str.
Overall sounds_index.c is about 27% of Asterisk startup time when using
sample configs. This patch reduces it to 20%. This is a half-fix. The
real problem is that the media_index is regenerated repeatedly - 68
times in my test.
Change-Id: Ia50b752f8efb356f852b05c4be495a6631af8652
Diffstat (limited to 'rest-api-templates/README.txt')
0 files changed, 0 insertions, 0 deletions