Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3170

[perf] use initialCapacity for ArrayList

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • General
    • None
    • myfaces trunk

    Description

      new ArrayList() creates Object [10] and in some situation it is not necessary. For example, UIInput.addValidator allocates ArrayList of size ten but in real usage nobody adds 10 validators to one component.

      Analyze usage of new ArrayList() and myfaces code and use initialCapacity if possible.

      i

      Attachments

        Activity

          People

            markoc50 Martin Kočí
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: