1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00
turboprop/lib
Antonio Gurgel 27b06c5798 Implement lib.gatherNamespaces
The documentation for pkgs.lib.lists.unique warned me that the function
is O(n^2). So I conducted some rather unscientific tests using my own
Kubernetes flake and found no noticeable time penalty:
`rm result && nix-collect-garbage -d && nix build` always took
between 37 and 40 seconds, with or without gatherNamespaces.
But, well, n=10.

Also, make more obvious the flaw in mk.namespaces.
If I prefix something with "N.B." it shouldn't be hidden in the code.
2023-12-07 00:03:08 -08:00
..
app-template Move app-template back to lib 2023-12-05 22:46:47 -08:00
builders.nix Truck in user data from own flake 2023-12-03 20:03:13 -08:00
default.nix Implement lib.gatherNamespaces 2023-12-07 00:03:08 -08:00
fetchers.nix Allow fetchers to be used as builders 2023-12-06 00:00:05 -08:00