Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-7047

Improve initial buffer capacity for Strings.toMultilineMarkup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 9.12.0
    • 10.0.0-M1, 9.14.0
    • wicket-core
    • None

    Description

      We currently create an AppendingStringBuffer with default capacity of 16 in Strings#toMultilineMarkup. Since we know the size of the original string and can take a guess at the additional length required for markup, it makes sense to size this buffer appropriately.

      Attachments

        Issue Links

          Activity

            People

              thomas.heigl Thomas Heigl
              thomas.heigl Thomas Heigl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: