Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5314

The performance of profile builder used by karaf maven plugin has reduced significantly in 4.1 compared to 4.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.1.3, 4.2.0.M1
    • None
    • None

    Description

      The performance of profile builder used by karaf maven plugin has reduced significantly in 4.1 compared to 4.0.
      The java streams API is being used in 4.1 to filter our the required features from the set of all features present in the repositories that are part of the profile. This is done in the "addFeatures" method in the "Builder.java" class in the "org.apache.karaf.profile.core" bundle. This change (from 4.0) has drastically reduced the performance. For a profile with ~900 features in all the repositories in the profile and ~300 required features from a highly complex feature dependency tree, this function is taking around 13min to complete. The same execution took around 3-5min in 4.0 (where simple for loops were being used).

      Attachments

        Issue Links

          Activity

            People

              cschneider Christian Schneider
              vinayshankar Vinay Shankar
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: