Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-182

Allow some printing operations directly from CSVFormat

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: Printer
    • Labels:
      None
    • Environment:

      Description

      Over in Apache Log4j-land, we are working on a GC-free logging epic.

      We try hard to generate as few objects as possible. Right now, we create one CSVPrinter per logging event to create a CSV line for that event.

      In order to get the best memory profile and performance, this ticket proposes to refactor the CSVPrinter and CSVFormat objects to allow a subset of print operations directly from the CSVFormat object.

      I tested this patch with the Log4j Git master and it works.

        Attachments

        1. commons-csv-182.diff
          21 kB
          Gary Gregory

          Issue Links

            Activity

              People

              • Assignee:
                ggregory Gary Gregory
                Reporter:
                ggregory Gary Gregory
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: