[ https://issues.apache.org/jira/browse/MYFACES-3144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13033497#comment-13033497 ]
Jakob Korherr commented on MYFACES-3144: ---------------------------------------- > Is there any method which is always called as first if component will > executed/rendered? MyFaces internally yes, but if you use extensions for custom JSF comp-libs it might be different. We should not rely on an invariant like that! > [PERF] Cache renderer in UIComponentBase > ---------------------------------------- > > Key: MYFACES-3144 > URL: https://issues.apache.org/jira/browse/MYFACES-3144 > Project: MyFaces Core > Issue Type: New Feature > Components: General > Affects Versions: 2.1.0-SNAPSHOT > Environment: myfaces core trunk > Reporter: Martin Kočí > Assignee: Martin Kočí > Attachments: MYFACES-3144.patch > > > UIComponentBase uses getRenderer(): Renderer in five methods: > 1) decode > 2) encodeBegin > 3) encodeChildren > 4) encodeEnd > 50 getClientId > getting the renderer is not cheap if you have thousands component in view. > Cache renderer instance in UIComponentBase (Trinidad UIXComponentBase does it > already) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira