Ken Giusti created DISPATCH-2222:
------------------------------------

             Summary: Avoid cpu-intensive message string-ify of every received 
AMQP message
                 Key: DISPATCH-2222
                 URL: https://issues.apache.org/jira/browse/DISPATCH-2222
             Project: Qpid Dispatch
          Issue Type: Bug
          Components: Router Node
    Affects Versions: 1.17.0
            Reporter: Ken Giusti
            Assignee: Ken Giusti


A call to log_link_message() is made for every received AMQP message.  This 
function logs a string-ified version of the message at level QD_LOG_TRACE.

 

log_link_message() parses out each message and summarizes it into a string 
buffer before logging.  This stringify operation is cpu-intensive.  According 
to flamegraphs it occupies 5% of the compute budget.

 

The string-ify operation should be avoided if the message log level doe not 
have TRACE enabled.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to