[
https://issues.apache.org/jira/browse/OFBIZ-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13630947#comment-13630947 ]
Adrian Crum commented on OFBIZ-5170:
------------------------------------
I removed Javolution from UtilMisc.java in revision 1465253. A lot of code uses this class to create Lists and Maps, so I thought it would be an ideal candidate for comparison.
With Javolution
---------------
toList(Object) 0.003083333 mS average self time (AST)
toMap(Object[]) 0.006643836 mS AST
Without Javolution
------------------
toList(Object) 0.001512195 mS AST
toMap(Object[]) 0.004785714 mS AST
The differences are too small to be a significant performance consideration. But the numbers seem to prove what the experts say - that borrowing an object from an object pool requires synchronization, and that synchronization takes more time than creating a new object.
> Profiling OFBiz
> ---------------
>
> Key: OFBIZ-5170
> URL:
https://issues.apache.org/jira/browse/OFBIZ-5170> Project: OFBiz
> Issue Type: Improvement
> Components: ALL COMPONENTS
> Affects Versions: SVN trunk
> Reporter: Adrian Crum
> Priority: Minor
> Attachments: HotSpotSettings.PNG, HotSpots_Rev_1464779.csv
>
>
> I will be using this issue to share the things I learn while profiling OFBiz to study the impact of removing Javolution.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira