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

Reduce allocations when encoding ComponentInfo

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 9.8.0
    • 10.0.0-M1, 9.9.0
    • wicket-core
    • None

    Description

      Our profiler shows a significant amount of allocations coming from ComponentInfo.encodeComponentPath:

      We know the exact length of the strings we are encoding and decoding, so pre-sizing the StringBuilder should be an easy improvement.

      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: