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

Improve sizing of StringResponse when writing scripts in PartialPageResponse

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 9.12.0
    • 10.0.0-M1, 9.13.0
    • wicket-core
    • None

    Description

      When rendering scripts in PartialPageResponse, an AppendingStringBuilder with initial capacity 1024 is created. This buffer is then written to a StringResponse that uses a buffer with an initial capacity of 128 causing unnecessary allocations.

      We should create the StringResponse with enough capacity to hold the scripts.

      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: