Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1248

FastDatePrinter Memory allocation regression

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5
    • Component/s: lang.time.*
    • Labels:
      None
    • Flags:
      Patch

      Description

      when the code was migrated from StringBuffer to Appendable in LANG-1152.
      We've lost the ability to modify the buffer (setCharAt)
      The new implementation of appendFullDigits allocate a temporary char array to work around that limitation.
      This is a major source of memory allocation which is not present in version 3.4.

        Attachments

        1. MyBenchmark.java
          4 kB
          Benoit Wiart

          Issue Links

            Activity

              People

              • Assignee:
                chonton Charles Honton
                Reporter:
                benoitw Benoit Wiart
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: