tailscale/util
Josh Bleecher Snyder a5dd0bcb09 util/jsonutil: new package
The cornerstone API is a more memory-efficient Unmarshal.
The savings come from re-using a json.Decoder.

BenchmarkUnmarshal-8      	 4016418	       288 ns/op	       8 B/op	       1 allocs/op
BenchmarkStdUnmarshal-8   	 4189261	       283 ns/op	     184 B/op	       2 allocs/op

It also includes a Bytes type to reduce allocations
when unmarshalling a non-hex-encoded JSON string into a []byte.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2020-11-19 13:58:35 -08:00
..
endian util/endian: add Native variable to get the platform's native binary.ByteOrder 2020-11-17 13:49:24 -08:00
jsonutil util/jsonutil: new package 2020-11-19 13:58:35 -08:00
lineread util/lineread: add docs to Reader 2020-11-19 12:14:58 -08:00
pidowner util/pidowner: add missing copyright header 2020-09-11 08:57:10 -07:00
racebuild util/racebuild: add package to export a race-is-enabled const 2020-11-16 10:11:53 -08:00
uniq util/uniq: add new package 2020-10-02 11:00:56 -07:00