You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Daniel Stoch <da...@gmail.com> on 2018/11/14 17:03:53 UTC

Resource loading: resolver performance tuning

Hi,

We must change Equinox version to a new one (to conform application to
a newer OSGi spec), which uses Felix resolver (this change was done in
Equinox 3.10). The previous Equinox version uses its own mechanism for
resolving resources. It seems that loading resources with Felix
resolver is several times slower. So we have a performance degradation
(especially on start-up until resource caches will be filled up). We
have asked people on Equinox forum about this problem but without
successful answer.

Maybe there are some tips how to tune this resources loading to
achieve a better results (some special resolver settings, etc.)? Or
what can be wrong in our application ;)?

I have attached file with report from profiler between both versions
of Equinox (with Felix resolver and without it). There are merged
callees for ClassLoader.getResource(String) method. As you can see in
this test a new version is almost 5 times slower (according to
profiler results).

Profiler results for ClassLoader.getResource(String)
https://dl.dropboxusercontent.com/s/e69xav1dogwch4o/GetResource_profiling.zip?dl=1

--
Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Resource loading: resolver performance tuning

Posted by Daniel Stoch <da...@gmail.com>.
This link should work ok (I have tested it). So I don't know why it
doesn't work for you.

Returning to results: I am curious why this method
ResolverImpl.mergeCandidatePackages is called over 18 millions times?!

--
Daniel

On Thu, Nov 15, 2018 at 9:00 AM Jochen Wiedmann
<jo...@gmail.com> wrote:
>
> On Wed, Nov 14, 2018 at 6:04 PM Daniel Stoch <da...@gmail.com> wrote:
>
> > Profiler results for ClassLoader.getResource(String)
> > https://dl.dropboxusercontent.com/s/e69xav1dogwch4o/GetResource_profiling.zip?dl=1
>
> That link doesn't work (at least not for me)
>
> Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Resource loading: resolver performance tuning

Posted by Jochen Wiedmann <jo...@gmail.com>.
On Wed, Nov 14, 2018 at 6:04 PM Daniel Stoch <da...@gmail.com> wrote:

> Profiler results for ClassLoader.getResource(String)
> https://dl.dropboxusercontent.com/s/e69xav1dogwch4o/GetResource_profiling.zip?dl=1

That link doesn't work (at least not for me)

Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org