netns: add comment about undesirable algorithmic complexity
We don't want to be Accidentally Quadratic™
This commit is contained in:
parent
a3ae8668e6
commit
0f0f6ddbb9
1 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,12 @@ let
|
|||
# availableNetns.bitcoind = [ "clighting" ];
|
||||
# and
|
||||
# availableNetns.clighting = [ "bitcoind" ];
|
||||
#
|
||||
# FIXME: Although negligible for our purposes, this calculation's runtime
|
||||
# is in the order of (number of connections * number of services),
|
||||
# because attrsets and lists are fully copied on each update with '//' or '++'.
|
||||
# This can only be improved with an update in the nix language.
|
||||
#
|
||||
availableNetns = let
|
||||
# base = { clightning = [ "bitcoind" ]; ... }
|
||||
base = builtins.mapAttrs (n: v:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue