diff options
| author | Ben Wolsieffer <benwolsieffer@gmail.com> | 2024-04-20 14:47:00 -0400 |
|---|---|---|
| committer | Ben Wolsieffer <benwolsieffer@gmail.com> | 2024-04-26 21:05:42 -0400 |
| commit | a25e43e6d7089d4655f945c9874bd6756fbb5c90 (patch) | |
| tree | 97f3ed125d11afbecafa71af386c349890a87831 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 21833407b4364b7266a1b234d06182f655ec6cb7 (diff) | |
pythonCatchConflictsHook: prevent exponential worst-case
The hook performs a depth first search on the graph defined by
propagatedBuildInputs. This traverses all paths through the graph,
except for any cycles. In the worst case with a highly connected graph,
this search can take exponential time. In practice, this means that in
cases with long dependency chains and multiple packages depending on the
same package, the hook can take several hours to run.
Avoid this problem by keeping track of already visited paths and only
visiting each path once. This makes the search complete in linear time.
The visible effect of this change is that, if a conflict is found, only
one dependency chain that leads to the conflicting package is printed,
rather than all the possible dependency chains.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
