mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
a4e19f2233
rsc.io/goversion is really expensive. Running version.ReadExe on tailscaled on darwin allocates 47k objects, almost 11mb. All we want is the module info. For that, all we need to do is scan through the binary looking for the magic start/end strings and then grab the bytes in between them. We can do that easily and quickly with nothing but a 64k buffer. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com> |
||
---|---|---|
.. | ||
distro | ||
.gitignore | ||
cmdname_ios.go | ||
cmdname.go | ||
cmp_test.go | ||
cmp.go | ||
modinfo_test.go | ||
print.go | ||
prop.go | ||
race_off.go | ||
race.go | ||
version.go |