You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/control/controlclient
Brad Fitzpatrick cb4a61f951 control/controlclient: don't clone self node on each NetworkMap
Drop in the bucket, but have to start somewhere.

Real wins will come once this is done for peers.

                                 │     before     │                after                │
                                 │      B/op      │     B/op       vs base              │
    MapSessionDelta/size_10-8      10.213Ki ± ∞ ¹   9.650Ki ± ∞ ¹  -5.51% (p=0.008 n=5)
    MapSessionDelta/size_100-8      83.64Ki ± ∞ ¹   83.08Ki ± ∞ ¹  -0.67% (p=0.008 n=5)
    MapSessionDelta/size_1000-8     800.8Ki ± ∞ ¹   800.3Ki ± ∞ ¹  -0.07% (p=0.008 n=5)
    MapSessionDelta/size_10000-8    7.712Mi ± ∞ ¹   7.711Mi ± ∞ ¹  -0.01% (p=0.008 n=5)
    geomean                         271.1Ki         266.8Ki        -1.59%

                                 │    before    │               after                │
                                 │  allocs/op   │  allocs/op    vs base              │
    MapSessionDelta/size_10-8       73.00 ± ∞ ¹    72.00 ± ∞ ¹  -1.37% (p=0.008 n=5)
    MapSessionDelta/size_100-8      524.0 ± ∞ ¹    523.0 ± ∞ ¹  -0.19% (p=0.008 n=5)
    MapSessionDelta/size_1000-8    5.025k ± ∞ ¹   5.024k ± ∞ ¹  -0.02% (p=0.008 n=5)
    MapSessionDelta/size_10000-8   50.02k ± ∞ ¹   50.02k ± ∞ ¹  -0.00% (p=0.040 n=5)
    geomean                        1.761k         1.754k        -0.40%

Updates #1909

Change-Id: Ie19dea3371de251d64d4373dd00422f53c2675ea
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
..
auto.go control/controlclient: move lastUpdateGenInformed to tighter scope 2 years ago
client.go all: update copyright and license headers 3 years ago
controlclient_test.go all: update copyright and license headers 3 years ago
direct.go types/netmap, all: make NetworkMap.SelfNode a tailcfg.NodeView 2 years ago
direct_test.go control/controlclient: add Auto.updateRoutine 2 years ago
map.go control/controlclient: don't clone self node on each NetworkMap 2 years ago
map_test.go types/netmap, all: make NetworkMap.SelfNode a tailcfg.NodeView 2 years ago
noise.go control: use tstime instead of time (#8595) 2 years ago
noise_test.go control/controlclient: use dnscache.Resolver for Noise client 3 years ago
sign.go all: update copyright and license headers 3 years ago
sign_supported.go control: use tstime instead of time (#8595) 2 years ago
sign_supported_test.go all: update copyright and license headers 3 years ago
sign_unsupported.go all: update copyright and license headers 3 years ago
status.go all: update copyright and license headers 3 years ago