Community
Participate
Working Groups
I noticed that my implementation of org.eclipse.birt.report.model.api.IResourceLocator#findResource() is called dozens of times for one and the same resource (images, resource bundle properties, javascript/JARs referenced in the .rptdesign files). I expect that BIRT uses a cache for such resources.
Discussion was started here: http://www.eclipse.org/forums/index.php?t=msg&th=169329&start=0&
It's better for user to do cache in the implementation of IResourceLocator.
Sorry, I must insist. Look at the signature of IResourceLocator and you'll notice that clients have to chance to cache resources: http://www.birt-exchange.com/be/documentation/BIRT_220/EngineJavadoc/model/api/org/eclipse/birt/report/model/api/IResourceLocator.html#findResource%28org.eclipse.birt.report.model.api.ModuleHandle,%20java.lang.String,%20int%29 IResourceLocator returns a URL i.e. it's just a pointer to a resource. We already cache URL resolutions based on names but that's as much as we can do.
schedule to Indigo release to investigate.
Fixed.