Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6155

Add caching of service component metadata

    XMLWordPrintableJSON

Details

    Description

      SCR has to discover and parse the component XML files of all bundles that have the Service-Component header. In a configuration that has a significant number of bundles using SCR this overhead begins to add up. For modest number of bundles (~300) I see this taking nearly 200 ms in an overall application launch time of 3000 ms.

      This overhead can be greatly reduced if we cached the component metadata such that on restart the XML files do not need to be discovered or parsed, or even having to look for the Service-Component header in all active bundles. I am working on a caching implementation that I would like to contribute which I plan to have disabled by default so we can experiment with enabling such a cache for cases where a relaunch performance time is critical.

      Attachments

        Activity

          People

            tjwatson Tom Watson
            tjwatson Tom Watson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: