Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6283

AppendableWriter | Making use of the writer API if possible

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Neutral Neutral
    • None
    • 5.2.7, 5.4
    • rendering
    • None
    • Yes

      While investigating a problem my profiler showed up a large amount of String creations. I figured that cause was located in AppendableWriter as it uses an Appendable to write the data.
      However often (at least I haven't found a different scenario) the Appendable instance was a Writer itself, so the creation of a String using "new String(..)" basically isn't necessary in most cases.
      My patch tests whether the Appendable is a Writer and then uses this Writer directly.

        Acceptance criteria

              Unassigned Unassigned
              costamojan Daniel Kasmeroglu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD