Uploaded image for project: 'XBean'
  1. XBean
  2. XBEAN-203

Performance improvement by adding local cache for MultiParentClassLoader#loadClass

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.7
    • 3.12
    • classloader
    • None

    Description

      While profiling for performance issues on ServiceMix, we noticed a lot of time was spent waiting for the object lock to access MultiParentClassLoader's loadClass() method, especially when using things like JAXP. We managed to get significant improvements by adding a local cache to avoid the synchronized method invocation for previously loaded classes.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: