Lars Grefer created OAK-8951:
--------------------------------

             Summary: Performance Improvement of 
RepositoryStatistics$Type.getType
                 Key: OAK-8951
                 URL: https://issues.apache.org/jira/browse/OAK-8951
             Project: Jackrabbit Oak
          Issue Type: Improvement
            Reporter: Lars Grefer
         Attachments: oak-profiling.png

While profiling our application, I noticed that our JVM spends a considerable 
amount of time on constructing the IllegalArgumentException in 
{{org.apache.jackrabbit.api.stats.RepositoryStatistics.Type#valueOf}}

If {{org.apache.jackrabbit.api.stats.RepositoryStatistics.Type#getType}} would 
be re-implemented by iterating over {{values()}} (instead of using 
{{valueOf()}}) the costly construction of the exception (which is ignored 
anyway) could be avoided.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to