Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deduplicate during
_flatten_markers()
The potential downside of the approach in this series of commits is that cnf() and dnf() can, in the worst case, be exponentially expensive. eg `cnf((a1 and b1) or (a2 and b2) or ... (an and bn))` generates 2^n intersections. In practice, markers on python packages seem not to get long enough for this to be an issue. Deduplicating the markers on unions and intersections is the lowest of low-hanging fruit in mitigating this.
- Loading branch information