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

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Jan 28 15:41:04 CST 2014


Rusty Newton created ASTERISK-23202:
---------------------------------------

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


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