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

ListMultipleChoice has a performance issue with very large lists, patch included

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.20
    • 1.5.7, 6.0.0-beta2
    • wicket

    Description

      If ListMultipleChoice has thousands of options, the convertChoiceIdsToChoices method will become a performance bottleneck because it has a O(N^2) algorithm for determining the selected items. This patch suggests an optimization using a HashMap which will have a performance improvement in cases of large choices lists (users typically 'select all' in such situation).

      Attachments

        1. patch.txt
          2 kB
          Martin Terra

        Activity

          People

            cmenzel Carl-Eric Menzel
            mmakundi Martin Terra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified