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/util
Joe Tsai 01d4dd331d
util/deephash: simplify hasher.hashMap (#2503)
The swapping of bufio.Writer between hasher and mapHasher is subtle.
Just embed a hasher in mapHasher to avoid complexity here.

No notable change in performance:
	name              old time/op    new time/op    delta
	Hash-8              76.7µs ± 1%    77.0µs ± 1%    ~            (p=0.182 n=9+10)
	HashMapAcyclic-8    62.4µs ± 1%    62.5µs ± 1%    ~            (p=0.315 n=10+9)
	TailcfgNode-8       10.3µs ± 1%    10.3µs ± 1%  -0.62%         (p=0.004 n=10+9)
	HashArray-8         1.07µs ± 1%    1.06µs ± 1%  -0.98%          (p=0.001 n=8+9)

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
3 years ago
..
cibuild wgengine/magicsock: increase legacy ping timeout again 3 years ago
cmpver util/cmpver: move into OSS from corp repo. 3 years ago
deephash util/deephash: simplify hasher.hashMap (#2503) 3 years ago
dnsname util/dnsname: make ToFQDN take exactly 0 or 1 allocs for everything. 3 years ago
endian util/endian: add Native variable to get the platform's native binary.ByteOrder 4 years ago
groupmember cmd/tailscale/web: add support for QNAP 3 years ago
jsonutil util/jsonutil: new package 4 years ago
lineread util/lineread: add docs to Reader 4 years ago
osshare ipn/ipnlocal: add file sharing to windows shell 3 years ago
pidowner util/pidowner: add missing copyright header 4 years ago
racebuild util/racebuild: add package to export a race-is-enabled const 4 years ago
systemd util/systemd: explicitly check for os.ErrNotExist from sdnotify 3 years ago
uniq util/uniq: add new package 4 years ago
winutil net/dns: do not run wsl.exe as LocalSystem 3 years ago