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
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>
4 years ago
..
endian util/endian: add Native variable to get the platform's native binary.ByteOrder 4 years ago
jsonutil util/jsonutil: new package 4 years ago
lineread util/lineread: add docs to Reader 4 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
uniq util/uniq: add new package 4 years ago