netns: add comment about undesirable algorithmic complexity
We don't want to be Accidentally Quadratic™
This commit is contained in:
parent
a3ae8668e6
commit
0f0f6ddbb9
@ -16,6 +16,12 @@ let
|
|||||||
# availableNetns.bitcoind = [ "clighting" ];
|
# availableNetns.bitcoind = [ "clighting" ];
|
||||||
# and
|
# and
|
||||||
# availableNetns.clighting = [ "bitcoind" ];
|
# 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
|
availableNetns = let
|
||||||
# base = { clightning = [ "bitcoind" ]; ... }
|
# base = { clightning = [ "bitcoind" ]; ... }
|
||||||
base = builtins.mapAttrs (n: v:
|
base = builtins.mapAttrs (n: v:
|
||||||
|
Loading…
Reference in New Issue
Block a user