[
https://jira.jboss.org/jira/browse/RF-8425?page=com.atlassian.jira.plugin...
]
Mark Torres updated RF-8425:
----------------------------
Attachment: ToolTipRenderer.java
I'm attaching the renderer we're using right now. I actually subclassed the
original Renderer. We did move the calls to getResource out of the constructor, because we
thought that was the issue, but when I double checked, we did notice that
getRenderer(UIToolTip toolTip) always instantiate the subclass.
rich:tooltip performance
------------------------
Key: RF-8425
URL:
https://jira.jboss.org/jira/browse/RF-8425
Project: RichFaces
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: component-output, performance
Affects Versions: 3.3.1
Reporter: Mark Torres
Assignee: Andrey Markhel
Fix For: 3.3.3.Final
Attachments: ToolTipRenderer.java
We have used rich:tooltip in a lot of places within our application. And while profiling,
we came to a bottleneck caused by repeated calls to RendererBase.getResource(String
resourceURI ) during the constructor of ToolTipRenderer. I think the main issue is the
ToolTipRenderer.getRenderer(UIToolTip toolTip) method never caches the subclasses and thus
created a lot of HtmlToolTipRendererBlock, HtmlToolTipRenderer objects, and calls to
RendererBase.getResource(String resourceURI ). We've overriden the renderer in our
environment to use something that caches the subclass and it improved performance a lot.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira