Uploaded image for project: 'JBoss Marshalling'
  1. JBoss Marshalling
  2. JBMAR-213

Unnecessary flush in SimpleDataOutput causes performance issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 1.4.10.Final
    • 1.4.10.Final
    • Marshalling API
    • None

    Description

      In the write functions of SimpleDataOutput, it needs to flush the internal buffer when it is full or write a big bytes. However, it does not need to flush the underlying stream like it is currently; doing so will overwrite the underlying buffer and decrease performance significantly. In such write functions, it should use shallowFlush() method instead.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lingguang Fred Ling (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: