Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-170

Cache ClassNotFounds in CompositeClassLoader to speed up compilation

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 6.0.0.CR2
    • 5.5.1.Final
    • None
    • None

    Description

      Compilation of our rules are taking a long time.
      During profiling, one bottleneck that appears is excessive Class.forName lookups.
      CompositeClassLoader caches class that are found successfully, but does not cache those that were not found.
      Mvel tries to lookup "non-existent" classes a lot during compilation.
      Caching these ClassNotFounds should speed up the compilation.

      This change alone brought down our compilation time from 163854ms to 47312ms
      on my dev box.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            mark_v_torres Mark Torres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: