[ 
https://issues.apache.org/jira/browse/OPENJPA-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476335
 ] 

Patrick Linskey commented on OPENJPA-160:
-----------------------------------------

Hmm. I don't get it. The only thing in newInstance() is 'new BrokerImpl()'. 
It's my understanding that all of the BrokerImpl construction should be 
reported in the BrokerImpl.<init> method call. I have a hard time believing 
that memory allocation (the only other thing that should be involved in a 'new 
BrokerImpl()' call) is taking up 9.1% of the time.

What profiler are you using? Did you run the test without the profiler also, to 
see if it's inspection overhead?

Am I wrong in thinking that the construction time, including inlined field 
assignments, will be in BrokerImpl.<init>?

> Reuse BrokerImpl objects
> ------------------------
>
>                 Key: OPENJPA-160
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-160
>             Project: OpenJPA
>          Issue Type: Sub-task
>            Reporter: Michael Dick
>         Assigned To: Patrick Linskey
>         Attachments: newprofile.jpg, openjpa-160-patch.txt, 
> openjpa-160-patch.txt, perf2.jpg, perf3.jpg
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to