Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1414

Performance regression in Model.remove(Model m) method

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Jena 3.3.0, Jena 3.4.0
    • Fix Version/s: Jena 3.6.0
    • Component/s: Core
    • Labels:
      None

      Description

      The Model.remove(Model) works very slow on large models, as it propagates to GraphUtil.deleteFrom(Graph, Graph), which computes size of the target graph by iterating over all triples. This computation takes nearly 100% of the time of the Model.remove(Model) operation.

      It seems this commit introduced the issue: https://github.com/apache/jena/commit/781895ce64e062c7f2268a78189a777c39b92844#diff-fbb4d11dc804464f94c27e33e11b18e8

      Due to this bug deletion of a concept scheme on a large ontology may take several minutes.

        Attachments

        1. graph_util_improve.patch
          4 kB
          Michał Woźniak

          Issue Links

            Activity

              People

              • Assignee:
                andy Andy Seaborne
                Reporter:
                misias Michał Woźniak
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: