Actions
Issue #3903
closedRedundant solver instantiated and loaded during a recursive associate call
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.17.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 41
Quarter:
Description
It seems a solver is being unnecessarily instantiated and loaded in a recursive associate call
This wastes a lot of RAM and CPU with big repositories and might be avoided.
Actions
Share solver between recursive associate calls
Currently each associate call in a recursive tree of calls instantiates and loads its own instance of a solver. This is both CPU and RAM expensive.
The fix avoids subsequent instantiation of the solver thru passing it as an argument of the associate function.
Fixes: #3903