-
Notifications
You must be signed in to change notification settings - Fork 2.4k
spack diff has exponential complexity #51253
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingtriageThe issue needs to be prioritizedThe issue needs to be prioritized
Description
Steps to reproduce
spack diff /x /y
recurses through all possible paths, which means worst case O(2^N) complexity for a DAG with N nodes with edges v_i -> v_j if i < j.
This is due to unconditional
spack/lib/spack/spack/solver/asp.py
Lines 2554 to 2560 in 5853eb9
| dependency_clauses = self._spec_clauses( | |
| dep, | |
| body=body, | |
| expand_hashes=expand_hashes, | |
| concrete_build_deps=concrete_build_deps, | |
| context=context, | |
| ) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageThe issue needs to be prioritizedThe issue needs to be prioritized