Yunkai Zhang created TS-2126:
--------------------------------

             Summary: Avoid unnecessary memory copy in LogHost::write()
                 Key: TS-2126
                 URL: https://issues.apache.org/jira/browse/TS-2126
             Project: Traffic Server
          Issue Type: Improvement
          Components: Logging
            Reporter: Yunkai Zhang


Now, in LogHost::write (LogBuffer *lb), Another new LogBuffer object will be 
allocated to copy the content of *lb* parameter.

But *lb* will be deleted by the upper function, 
LogBufferManager::flush_buffers(), after LogHost::write() return.

Obviously, the copy is unnecessary, and may cause memory fragmentation.

Let's optimize it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to