Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unionOfDisjoint: use builtins.intersectAttrs
This brings two benefits: 1. The complete list of collisions is printed in the whenever any colliding attribute is accessed. 2. The sets are intersected using a C++ primitive, which runs in O(n) time (intersecting pre-sorted lists) with small constants rather than interpreted Nix code. Thanks to @toonn for prompting this improvement.
- Loading branch information