tailscale/ipn
Brad Fitzpatrick 120273d7f6 portlist: document, clean up, fix an open fd spike, optimize a bit
I noticed portlist when looking at some profiles and hadn't looked at
the code much before. This is a first pass over it. It allocates a
fair bit. More love remains, but this does a bit:

name       old time/op    new time/op    delta
GetList-8    9.92ms ± 8%    9.64ms ±12%     ~     (p=0.247 n=10+10)

name       old alloc/op   new alloc/op   delta
GetList-8     931kB ± 0%     869kB ± 0%   -6.70%  (p=0.000 n=10+10)

name       old allocs/op  new allocs/op  delta
GetList-8     4.59k ± 0%     3.69k ± 1%  -19.71%  (p=0.000 n=10+10)

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-03-13 21:06:41 -07:00
..
ipnserver controlclient/netmap: write our own b.ConciseDiffFrom(a) function. 2020-03-12 23:01:08 -04:00
backend.go ipn: remove an unnecessary named parameter in doc 2020-03-03 08:05:11 -08:00
doc.go Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
e2e_test.go derp/derpmap: new DERP config package, merge netcheck into magicsock more 2020-03-10 10:37:25 -07:00
fake.go all: rename deep "Copy" methods to conventional Go name "Clone" 2020-02-27 12:20:29 -08:00
handle.go all: rename deep "Copy" methods to conventional Go name "Clone" 2020-02-27 12:20:29 -08:00
local.go portlist: document, clean up, fix an open fd spike, optimize a bit 2020-03-13 21:06:41 -07:00
message_test.go ipn: use *Prefs rather than Prefs throughout. 2020-02-20 11:31:10 -08:00
message.go ipn: misc cleanup 2020-02-25 10:05:14 -08:00
prefs_test.go ipn, wgengine/magicsock: add ipn.Prefs.DisableDERP bool 2020-03-04 12:53:37 -08:00
prefs.go ipn: Prefs.String(): print the current derp setting. 2020-03-13 00:43:19 -04:00
store_test.go Introduce a state store to LocalBackend. 2020-02-13 19:26:53 -08:00
store.go ipn: have NewFileStore try to create directories as needed 2020-03-03 11:51:44 -08:00