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

[perf] Replace HashSet with EnumSet for VisitHints

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.13, 2.1.7
    • None
    • None

    Description

      hints = new HashSet();
      hints.add(VisitHint.SKIP_UNRENDERED)

      can be replaced with EnumSet.of(...).

      The result is safe to multiple threads (with read operations) - a constant can be used instead of new instance every time.

      Attachments

        1. DefaultFaceletsStateManagementStrategy.patch
          2 kB
          Martin Kočí
        2. DefaultRestoreViewSupport.patch
          2 kB
          Martin Kočí
        3. PartialViewContextImpl.patch
          3 kB
          Martin Kočí

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: