[ https://issues.apache.org/jira/browse/OWB-527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999064#comment-12999064 ]
David Jencks commented on OWB-527: ---------------------------------- I'm looking at trunk code where the JspFactory.getDefaultFactory() is called at most once per web app in afterStartApplication line 117. Since the result may be different for every web app I don't understand how anything can be cached or speeded up. > JspFactory.getDefaultFactory() is synchronized, We can cache the return value > to improve performance > ---------------------------------------------------------------------------------------------------- > > Key: OWB-527 > URL: https://issues.apache.org/jira/browse/OWB-527 > Project: OpenWebBeans > Issue Type: Bug > Components: Lifecycle > Affects Versions: 1.0.0 > Reporter: Xiaoming Shi > Assignee: Mark Struberg > > In the file: > ./openwebbeans-1.0.0/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java > line:86 > The value returned by JspFactory.getDefaultFactory() can be cached to reduce > race and improve performance > (Similar to the Apache Bug, > https://issues.apache.org/bugzilla/show_bug.cgi?id=44408) -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira