[asterisk-bugs] [JIRA] (ASTERISK-23179) [patch] Formats: allow improved performance in Asterisk 11

Corey Farrell (JIRA) noreply at issues.asterisk.org
Wed Jan 22 14:45:03 CST 2014


Corey Farrell created ASTERISK-23179:
----------------------------------------

             Summary: [patch] Formats: allow improved performance in Asterisk 11
                 Key: ASTERISK-23179
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23179
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Formats/General
    Affects Versions: 11.8.0
            Reporter: Corey Farrell
         Attachments: no-format_attr.patch

This ticket is inspired by Josh's email in asterisk-dev, and loosely related to ASTERISK-23114.  The purpose of this ticket is to allow significant reduction in the cost of ast_format_cmp in Asterisk 11, without breaking ABI.  The patch does nothing unless WITHOUT_FORMAT_ATTR_INTERFACE is defined for main/format.c.

For those who do not use res_format_attr_*.so, this patch and the define significantly reduce the cost of ast_format_cmp.

I tested with callgrind, 2 SIP calls at the same time to ConfBridge for 1 minute.  No transcoding was done (both channels used slin), debug was set to 1 and verbose set to 6.

Without the patch or without the define ast_format_cmp represented 26% of the Ir for each channel thread, 11% for the bridge thread.  With the patch and define ast_format_cmp was reduced to 1% for each channel, 0.4% for the bridge thread.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list