geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevan Miller (JIRA)" <>
Subject [jira] Commented: (XBEAN-156) BundleClassLoader.getResource() lookup is slow
Date Wed, 15 Sep 2010 03:50:33 GMT


Kevan Miller commented on XBEAN-156:

Committed update to BundleClassLoader. However, will keep this open. I think we need some
more investigation.

With this code change, my web profile startup time on Mac OS X (note: does not include Karaf
load time):

{code}Startup completed in 10.016s seconds{code}

With the above GERONIMO_OPTS, my startup time (does not include Karaf startup time) is reduced:

{code}Startup completed in 8.549s seconds{code}

Without admin console and openejb (two components still driving getWiredBundles() calls, my
startup time is:

{code}Startup completed in 6.198s seconds{code}

> BundleClassLoader.getResource() lookup is slow
> ----------------------------------------------
>                 Key: XBEAN-156
>                 URL:
>             Project: XBean
>          Issue Type: Bug
>          Components: bundleutils
>    Affects Versions: 3.8
>            Reporter: Jarek Gawor
>            Assignee: Kevan Miller
> When looking up META-INF/services resources, the BundleClassLoader obtains a list of
bundles wired to the bundle of the classloader in order to check each wired bundle for the
given resource. The problem is that the process of figuring out the list of wired bundles
is performed each time a lookup on META-INF/services resource is done and the process of getting
the wired bundles itself can be pretty slow. 
> The BundleClassLoader probably needs a better algorithm for getting the wired bundles.

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

View raw message