Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4656

Improve memory usage and speed of the resolver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • resolver-1.2.0
    • Resolver
    • None

    Description

      During big resolutions (> 100 bundles), the memory consumption can become very huge, mostly by keeping a lot of copies of the Candidates object.

      I want to lower the memory requirements of the resolver without touching the algorithm at all (which would be a different improvement).
      This can be done by using :

      • lower memory intensive collections
      • do smart copies of those collections (where they would only actually copy the data when modify)

      The second item is slightly more difficult to achieve, as the maps in the Candidate objects contains Set and List, which would mean that those must be copied too. So it could actually be complementary, if achievable.

      For the first one, the HashMap and HashSet are very memory intensive. I'll introduce two new collections which will lower the requirements.

      Attachments

        1. FELIX-4656.patch
          4 kB
          Tom Watson

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              gnodet Guillaume Nodet
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: