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>
2024-11-27 11:18:04 -08:00
..
backoff all: use math/rand/v2 more 2024-06-05 15:24:04 -07:00
example all: add test for package comments, fix, add comments as needed 2024-07-10 09:57:00 -07:00
filch all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
.gitignore Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
api.md all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 2023-02-28 19:00:00 -08:00
buffer.go logtail: require Buffer.Write to not retain the provided slice (#11617) 2024-04-08 15:01:07 -07:00
logtail_test.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
logtail.go logtail: avoid bytes.Buffer allocation (#11858) 2024-11-27 11:18:04 -08:00
README.md Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00

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.