XStream
  1. XStream
  2. XSTR-137

3x performance improvement by removing flush() call in PrettyPrintWriter

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: None
    • Labels:
      None

      Description

      At the end of PrettyPrintWriter.endNode(), there is a call to flush(). We found that if we override flush() to do nothing, xstream serialization runs about three times faster for our app. It doesn't look like there's any reason for this call, so perhaps take it out?

        People

        • Assignee:
          Unassigned
          Reporter:
          Brian Slesinsky
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: