mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
aa9d7f4665
Use go4.org/mem for memory safety. A slight performance hit, but a huge performance win for clients who start with a []byte. The perf hit is due largely to the MapHash call, which adds ~25ns. That is necessary to keep the fast path allocation-free. name old time/op new time/op delta GoParse3339/Z-8 281ns ± 1% 283ns ± 2% ~ (p=0.366 n=9+9) GoParse3339/TZ-8 509ns ± 0% 510ns ± 1% ~ (p=0.059 n=9+9) GoParse3339InLocation-8 330ns ± 1% 330ns ± 0% ~ (p=0.802 n=10+6) Parse3339/Z-8 69.3ns ± 1% 74.4ns ± 1% +7.45% (p=0.000 n=9+10) Parse3339/TZ-8 110ns ± 1% 140ns ± 3% +27.42% (p=0.000 n=9+10) ParseInt-8 8.20ns ± 1% 8.17ns ± 1% ~ (p=0.452 n=9+9) name old alloc/op new alloc/op delta GoParse3339/Z-8 0.00B 0.00B ~ (all equal) GoParse3339/TZ-8 160B ± 0% 160B ± 0% ~ (all equal) GoParse3339InLocation-8 0.00B 0.00B ~ (all equal) Parse3339/Z-8 0.00B 0.00B ~ (all equal) Parse3339/TZ-8 0.00B 0.00B ~ (all equal) name old allocs/op new allocs/op delta GoParse3339/Z-8 0.00 0.00 ~ (all equal) GoParse3339/TZ-8 3.00 ± 0% 3.00 ± 0% ~ (all equal) GoParse3339InLocation-8 0.00 0.00 ~ (all equal) Parse3339/Z-8 0.00 0.00 ~ (all equal) Parse3339/TZ-8 0.00 0.00 ~ (all equal) Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
42 lines
1.7 KiB
Modula-2
42 lines
1.7 KiB
Modula-2
module tailscale.com
|
|
|
|
go 1.14
|
|
|
|
require (
|
|
github.com/alexbrainman/sspi v0.0.0-20180613141037-e580b900e9f5
|
|
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 // indirect
|
|
github.com/apenwarr/fixconsole v0.0.0-20191012055117-5a9f6489cc29
|
|
github.com/coreos/go-iptables v0.4.5
|
|
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 // indirect
|
|
github.com/gliderlabs/ssh v0.2.2
|
|
github.com/go-multierror/multierror v1.0.2
|
|
github.com/go-ole/go-ole v1.2.4
|
|
github.com/godbus/dbus/v5 v5.0.3
|
|
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
|
|
github.com/google/go-cmp v0.4.0
|
|
github.com/goreleaser/nfpm v1.1.10
|
|
github.com/jsimonetti/rtnetlink v0.0.0-20200117123717-f846d4f6c1f4
|
|
github.com/klauspost/compress v1.10.10
|
|
github.com/kr/pty v1.1.1
|
|
github.com/mdlayher/netlink v1.1.0
|
|
github.com/miekg/dns v1.1.30
|
|
github.com/pborman/getopt v0.0.0-20190409184431-ee0cd42419d3
|
|
github.com/peterbourgon/ff/v2 v2.0.0
|
|
github.com/tailscale/depaware v0.0.0-20201003033024-5d95aab075be
|
|
github.com/tailscale/wireguard-go v0.0.0-20201021041318-a6168fd06b3f
|
|
github.com/tcnksm/go-httpstat v0.2.0
|
|
github.com/toqueteos/webbrowser v1.2.0
|
|
go4.org/mem v0.0.0-20201119185036-c04c5a6ff174
|
|
golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9
|
|
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b
|
|
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
|
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208
|
|
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd
|
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
|
|
golang.org/x/tools v0.0.0-20201002184944-ecd9fd270d5d
|
|
golang.zx2c4.com/wireguard/windows v0.1.2-0.20201113162609-9b85be97fdf8
|
|
honnef.co/go/tools v0.0.1-2020.1.4
|
|
inet.af/netaddr v0.0.0-20200810144936-56928fe48a98
|
|
rsc.io/goversion v1.2.0
|
|
)
|