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

Reduce allocations when merging page parameters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 9.0.0
    • 9.1.0, 8.10.0
    • wicket-core
    • None

    Description

      My profiler shows a significant amount of allocations and list resizing coming from PageParameters.mergeWith.

      The method unnecessarily creates ArrayLists, TreeSets, unmodifiable wrappers, and does not size the underlying list of NamedPair correctly when merging page parameters with multiple values.

      It can be called hundreds of times per request for applications with a high number of mounted pages and resources.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: