tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53869] New: Performance tuning solution to resolve too many cascaded JspContextWrapper issue
Date Thu, 13 Sep 2012 13:56:24 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53869

          Priority: P2
            Bug ID: 53869
          Assignee: dev@tomcat.apache.org
           Summary: Performance tuning solution to resolve too many
                    cascaded JspContextWrapper issue
          Severity: enhancement
    Classification: Unclassified
          Reporter: xshao@ebay.com
          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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message