diff options
| author | Adam Joseph <adam@westernsemico.com> | 2022-09-25 00:09:13 -0700 |
|---|---|---|
| committer | Adam Joseph <adam@westernsemico.com> | 2022-09-25 00:09:15 -0700 |
| commit | 037cf2fad190766319c6c40b931b49c075ce5e78 (patch) | |
| tree | 8e6ed01234d418241fc7c52c5e3fcdcf8b5eced0 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 99da19387705b90647741f020ad2f835e6c8056b (diff) | |
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.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
