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/logtail
Joe Tsai bac3af06f5
logtail: avoid bytes.Buffer allocation (#11858)
Re-use a pre-allocated bytes.Buffer struct and
shallow the copy the result of bytes.NewBuffer into it
to avoid allocating the struct.

Note that we're only reusing the bytes.Buffer struct itself
and not the underling []byte temporarily stored within it.

Updates #cleanup
Updates tailscale/corp#18514
Updates golang/go#67004

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
1 year ago
..
backoff all: use math/rand/v2 more 2 years ago
example all: add test for package comments, fix, add comments as needed 1 year ago
filch all: use Go 1.22 range-over-int 2 years ago
.gitignore Move Linux client & common packages into a public repo. 6 years ago
README.md Move Linux client & common packages into a public repo. 6 years ago
api.md all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 3 years ago
buffer.go logtail: require Buffer.Write to not retain the provided slice (#11617) 2 years ago
logtail.go logtail: avoid bytes.Buffer allocation (#11858) 1 year ago
logtail_test.go all: use Go 1.22 range-over-int 2 years ago

README.md

Tailscale Logs Service

This github repository contains libraries, documentation, and examples for working with the public API of the tailscale logs service.

For a very quick introduction to the core features, read the API docs and peruse the logs reprocessing example.

For more information, write to info@tailscale.io.