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

Unnecessary flush in SimpleDataOutput causes performance issue

XMLWordPrintable

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

      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.

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

              Created:
              Updated: