Maven
  1. Maven
  2. MNG-4062

Evaluate possibility to cache parents during multi module build

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0-alpha-3
    • Fix Version/s: 3.0-alpha-3
    • Component/s: Performance
    • Labels:
      None

      Description

      From a breakpoint in DefaultMavenProjectBuilder.build(File, ProjectBuilderConfiguration) it seems that the parent of a multi-module project is rebuild for each child in the reactor. Given the likelihood of the modules in the reactor having the same parent, it could be a good opportunity for optimization to cache the parents (or projects in general).

        Activity

        Benjamin Bentmann created issue -
        Hide
        Benjamin Bentmann added a comment -

        Of course, caching parents in general, i.e. parents of plugins or dependencies, should in general reduce project builder overhead.

        Show
        Benjamin Bentmann added a comment - Of course, caching parents in general, i.e. parents of plugins or dependencies, should in general reduce project builder overhead.
        Brett Porter made changes -
        Field Original Value New Value
        Fix Version/s 3.0-alpha-5 [ 14952 ]
        Jason van Zyl made changes -
        Assignee Benjamin Bentmann [ bentmann ]
        Fix Version/s 3.0-alpha-5 [ 14952 ]
        Fix Version/s 3.0-alpha-3 [ 14719 ]
        Hide
        Benjamin Bentmann added a comment -

        The model builder is using a ModelCache to reuse parent POMs and imported POMs in a reactor and MavenProject.getParent() itself is not used by the core so no hotspot either.

        Show
        Benjamin Bentmann added a comment - The model builder is using a ModelCache to reuse parent POMs and imported POMs in a reactor and MavenProject.getParent() itself is not used by the core so no hotspot either.
        Benjamin Bentmann made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Mark Thomas made changes -
        Workflow jira [ 12714424 ] Default workflow, editable Closed status [ 12754103 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Workflow jira [ 12950992 ] Default workflow, editable Closed status [ 12987245 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        224d 23h 58m 1 Benjamin Bentmann 14/Oct/09 12:25

          People

          • Assignee:
            Benjamin Bentmann
            Reporter:
            Benjamin Bentmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development