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

CSVFormat fluent API is rather inefficient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • None
    • None
    • None
    • None

    Description

      The implementation of the CSVFormat fluent API is rather inefficient, as each method invocation clones the original class instance.

      Now that the fields are volatile, it would be possible to do away with the clone() calls entirely.

      This would mean that the format could be updated later.

      If such usage is not desirable, then perhaps consider adding some kind of "freeze" method to prevent further changes.

      Or perhaps the parse() and format() methods could perform the freeze (e.g. set a flag to disable further updates).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sebb Sebb
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: