Open
Description
Is your feature request related to a problem? Please describe.
lib.filterAttrs
allocates a list of attribute names twice.
filterAttrs
is called every time attrsOf
produces a value, and it needs to, because of mkIf
.
Plenty of other usages exist.
Describe the solution you'd like
Add builtins.filterAttrs
with the same behavior.
Side benefit: stack traces will be slightly shorter without losing info.
Describe alternatives you've considered
Additional context
Priorities
Add 👍 to issues you find important.