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

Mark Struberg commented on TOMEE-1428:
--------------------------------------

well but TempClassLoader finds the class it serves for (the path given via the 
URL[] parameter) plus the same class from the AppClassLoader. And this is what 
causes the performance impact.

I have a huge test scenario ready and will try + bench a few possible solutions 
for it. 

> improve the performance of TempClassLoader$ResourceComparator
> -------------------------------------------------------------
>
>                 Key: TOMEE-1428
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1428
>             Project: TomEE
>          Issue Type: Improvement
>    Affects Versions: 2.0.0, 1.7.1
>         Environment: maven build - tests running with openejb-embedded
>            Reporter: Mark Struberg
>             Fix For: 2.0.0, 1.7.2
>
>
> While profiling our maven build with DeltaSpike CdiCtrl and openejb-embedded 
> I noticed that TempClassLoader$ResourceComparator#weight eats up a big part 
> of the scanning time. Improving this method could improve the overall boot 
> time of openejb around 20%.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to