Uploaded image for project: 'Reporting Module'
  1. Reporting Module
  2. REPORT-644

Improve performance of serialization to disk

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: Reporting 0.8.2
    • Fix Version/s: Reporting 0.9.0
    • Component/s: General Architecture
    • Labels:
      None
    • Complexity:
      Low

      Description

      Currently, when the reporting module wants to output report data to disk, it first serializes this data to a String using the core Serialization Service, and then writes that data to a file using apache commons FileUtils.

      It would seem more optimal to change this such that serialization could be streamed directly to disk using an efficient output stream implementation. Looking at the xstream documentation, it appears that instead of serializing to a String, and then writing this in a separate step, we could use either of:

      void toXML(Object obj, OutputStream out);
      void toXML(Object obj, Writer out);
      

      We should do this by exposing one or both of these "toXml" options within the ReportingSerializer class, and then using this class directly rather than through the SerializationService.

        Attachments

          Activity

            People

            Assignee:
            darius Darius Jazayeri [X] (Inactive)
            Reporter:
            mseaton Mike Seaton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: