diff options
author | adisbladis <adisbladis@gmail.com> | 2023-11-27 01:41:01 +1300 |
---|---|---|
committer | adisbladis <adisbladis@gmail.com> | 2023-11-27 11:37:56 +1300 |
commit | 7e07b3ecd55ac85675c26d9b09fab9996c410681 (patch) | |
tree | 294a4918d6a2b1f5742d94a6bcb9b1713bd8ca88 /lib/customisation.nix | |
parent | 627af21e87ce5d6a456f485292ac4ac2bc1f469f (diff) |
lib.attrsets.hasAttrByPath: Don't allocate one extra list per lookup recursion
Using `tail` in a recursive loop like this needlessly allocates. This changes the loop to look up by list index instead.
Diffstat (limited to 'lib/customisation.nix')
0 files changed, 0 insertions, 0 deletions