disconnect cache or performance enhancement on update [message #100686] |
Tue, 30 October 2007 16:58 |
Eclipse User |
|
|
|
Originally posted by: laurent.legoff.geensys.com
Hi,
I was actually developping a bundle in eclipse that can manage some
"Dynamic bundle". This "Dynamic bundle" are in fact Plugin Project in my
workspace that I install and start in current framework...
My problem is that these "Dynamics bundles" are often reloaded and this is
a performance problem. I view in debug mode that the osgi cache take a
long time to copy / remove files in the cache. I would like to disconnect
the cache for these specifics dynamics bundles.
Anyone have an idea of what can I do ?
Thanks for your help
Laurent
|
|
|
|
Re: disconnect cache or performance enhancement on update [message #104560 is a reply to message #101087] |
Wed, 30 January 2008 12:01 |
Eclipse User |
|
|
|
Originally posted by: laurent.legoff.geensy.com
Hi Tom,
I effectively use "reference:file" to load bundle without caching all
this one.
Thanks Laurent.
Tom Watson a écrit :
> How are you installing the bundle? Are you using a file URL or a
> FileInputStream? If so I can see why it is a performance problem. This
> forces the framework to copy the complete project contents into its own
> cache.
>
> When launching eclipse from eclipse (i.e. self-hosting) we use what are
> called reference URLs. This allows the framework to load and use the
> content of the bundle from the location specified as-is without copying
> the content into the framework cache. Something like this can be used:
>
> URL bundleReference =
> new URL("reference:file:<path to workspace project>");
> BundleContest context = getContext();
> // just use a String URL and let the framework use the URL string
> // as the location
> context.installBundle(bundleReference.toExternalForm());
> // or pick your own location and open the URL stream first
> context.installBundle(
> "some dynamic location", bundleReference.openStream());
>
>
> Currently the reference protocal only supports "referring" to another
> file: URL.
>
> HTH
>
> Tom.
|
|
|
Powered by
FUDForum. Page generated in 0.03204 seconds