https://issues.apache.org/bugzilla/show_bug.cgi?id=53869
Priority: P2
Bug ID: 53869
Assignee: [email protected]
Summary: Performance tuning solution to resolve too many
cascaded JspContextWrapper issue
Severity: enhancement
Classification: Unclassified
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: trunk
Component: Jasper
Product: Tomcat 7
Created attachment 29372
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29372&action=edit
Patch for JspContextWrapper.java
JspContextWrapper.getServletContext, JspContextWrapper.findAttribute and
JspContextWrapper.getELContext take much time because there are many cascaded
tag files.
For example:
<tag1>
<tag2>
<tag3>
<tag4/>
</tag3>
</tag2>
</tag1>
When calling JspContextWrapper(tag4).getServletContext from tag4, it will call
JspContextWrapper(tag3).getServletContext -->
JspContextWrapper(tag2).getServletContext -->
JspContextWrapper(tag1).getServletContext --> PageContext.getServletContext.
If the root PageContext can be held in JspConextWrapper, those
page,session,application scopes calling can go directy to this root
PageContext.
Please check out the attached diff file (JspContextWrapper.diff) to get more
detail about this change.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]