summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-12-06 13:42:55 -0500
committerCorey Farrell <git@cfware.com>2017-12-06 23:35:53 -0600
commit289549d6596a10be8e69c81bf71dd7926f06bb8d (patch)
tree0ddb8ab50300c29f4ca851504e1a2a3b5b196f86 /Makefile
parent8e6aedbdcde92661ac59ef383cd801f8414e229a (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 'Makefile')
0 files changed, 0 insertions, 0 deletions