You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mark Struberg (JIRA)" <de...@myfaces.apache.org> on 2012/07/11 14:42:34 UTC

[jira] [Commented] (EXTCDI-298) [perf] reduce overhead in ClassUtils

    [ https://issues.apache.org/jira/browse/EXTCDI-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411441#comment-13411441 ] 

Mark Struberg commented on EXTCDI-298:
--------------------------------------

please don't cache classes. This has a huge impact. The easy solution is to not run in a doPrivileged block if no SecurityManager is available. Will fix this.
                
> [perf] reduce overhead in ClassUtils
> ------------------------------------
>
>                 Key: EXTCDI-298
>                 URL: https://issues.apache.org/jira/browse/EXTCDI-298
>             Project: MyFaces CODI
>          Issue Type: Improvement
>            Reporter: Thomas Andraschko
>            Assignee: Mark Struberg
>         Attachments: EXTCDI-298.patch
>
>
> As discussed with gerhard, i removed the #doPriviliged which improved the method execution duration from 50ms to 0ms (30.000 invocations / request)
> I also added a class cache which improves loadClassForName from 62ms to 6ms for 9600 invocations.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira