myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (Updated) (JIRA)" <>
Subject [jira] [Updated] (MYFACES-3480) [perf] Use lazy init for HashMap/HastSet where possible
Date Wed, 07 Mar 2012 21:28:58 GMT


Leonardo Uribe updated MYFACES-3480:

       Resolution: Fixed
    Fix Version/s: 2.1.7
           Status: Resolved  (was: Patch Available)

Thanks to Martin Koci for provide this patch
> [perf] Use lazy init for HashMap/HastSet where possible
> -------------------------------------------------------
>                 Key: MYFACES-3480
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Improvement
>            Reporter: Martin Kočí
>            Assignee: Martin Kočí
>            Priority: Minor
>             Fix For: 2.0.13, 2.1.7
>         Attachments: FaceletCompositionContextImpl.patch, RequestViewContext.patch, TemplateContextImpl.patch,
UIViewRoot.patch, _ComponentAttributesMap.patch
> goal: make component tree creation fast as possible and avoid unnecessary instances
> some components instantialize attributes direct in field or in constructor. In many cases
it is not necessary, because those HashMap/Set instances are not used in current request/response
- it depends on use case.
> Example: UIViewRoot.listenerSuccessMap: lazy init is very suitable, because many view
have no phase listener.
> Check all components: candidates are "smarter" components like UIDate or UIInput

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message