Open roberth opened 1 week ago
Is your feature request related to a problem? Please describe.
lib.filterAttrs
filterAttrs is called every time attrsOf produces a value, and it needs to, because of mkIf. Plenty of other usages exist.
filterAttrs
attrsOf
mkIf
Describe the solution you'd like
Add builtins.filterAttrs with the same behavior.
builtins.filterAttrs
Side benefit: stack traces will be slightly shorter without losing info.
Describe alternatives you've considered
Additional context
Priorities
Add :+1: to issues you find important.
Is your feature request related to a problem? Please describe.
lib.filterAttrs
allocates a list of attribute names twice.filterAttrs
is called every timeattrsOf
produces a value, and it needs to, because ofmkIf
. 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 :+1: to issues you find important.