Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-2126

Avoid unnecessary memory copy in LogHost::write()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.1.2
    • Logging
    • None

    Description

      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.

      Attachments

        Activity

          People

            yunkai Yunkai Zhang
            yunkai Yunkai Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: