You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Kočí (Updated JIRA)" <de...@myfaces.apache.org> on 2012/03/06 19:52:54 UTC

[jira] [Updated] (MYFACES-3478) [perf] Replace HashSet with EnumSet for VisitHints

     [ https://issues.apache.org/jira/browse/MYFACES-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Kočí updated MYFACES-3478:
---------------------------------

    Status: Patch Available  (was: Open)
    
> [perf] Replace HashSet with EnumSet for VisitHints
> --------------------------------------------------
>
>                 Key: MYFACES-3478
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3478
>             Project: MyFaces Core
>          Issue Type: Improvement
>            Reporter: Martin Kočí
>            Assignee: Martin Kočí
>            Priority: Trivial
>         Attachments: DefaultFaceletsStateManagementStrategy.patch, DefaultRestoreViewSupport.patch, PartialViewContextImpl.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira