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
James Tucker d0f3fa7d7e util/fastuuid: add a more efficient uuid generator
This still generates github.com/google/uuid UUID objects, but does so
using a ChaCha8 CSPRNG from the stdlib rand/v2 package. The public API
is backed by a sync.Pool to provide good performance in highly
concurrent operation.

Under high load the read API produces a lot of extra garbage and
overhead by way of temporaries and syscalls. This implementation reduces
both to minimal levels, and avoids any long held global lock by
utilizing sync.Pool.

Updates tailscale/corp#18266
Updates tailscale/corp#19054

Signed-off-by: James Tucker <james@tailscale.com>
2 years ago
..
cache util/cache: fix missing interface methods (#11275) 2 years ago
cibuild all: update copyright and license headers 3 years ago
clientmetric util/clientmetric: allow client metric values to be provided by a function 3 years ago
cloudenv util/cloudenv: add support for DigitalOcean 2 years ago
cmpver util/cmpver: add Less/LessEq helper funcs 2 years ago
codegen util/codegen: support embedded fields 3 years ago
cstruct all: update copyright and license headers 3 years ago
ctxkey all: use reflect.TypeFor now available in Go 1.22 (#11078) 2 years ago
deephash all: use reflect.TypeFor now available in Go 1.22 (#11078) 2 years ago
dirwalk all: use tstest.Replace more 3 years ago
dnsname cmd/tailscale: extend hostname validation (#7678) 3 years ago
execqueue control/controlclient,util/execqueue: extract execqueue into a package 2 years ago
expvarx util/expvarx: add a time and concurrency limiting expvar.Func wrapper 2 years ago
fastuuid util/fastuuid: add a more efficient uuid generator 2 years ago
goroutines util/goroutines: let ScrubbedGoroutineDump get only current stack 2 years ago
groupmember util/groupmember: fail earlier if group doesn't exist, use slices.Contains 2 years ago
hashx all: update copyright and license headers 3 years ago
httphdr util/httphdr: add new package for parsing HTTP headers (#9797) 2 years ago
httpm util/httpm: don't run test if .git doesn't exist 2 years ago
jsonutil all: update copyright and license headers 3 years ago
limiter util/lru, util/limiter: add debug helper to dump state as HTML 2 years ago
lineread all: update copyright and license headers 3 years ago
linuxfw cmd/tailscaled: move cleanup to an implicit action during startup 2 years ago
lru util/lru: update c.head when deleting the most recently used entry 2 years ago
mak various: add golangci-lint, fix issues (#7905) 3 years ago
multierr all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
must all: update copyright and license headers 3 years ago
nocasemaps util/nocasemaps: add AppendSliceElem method to nocasemaps (#10871) 2 years ago
osdiag util/osdiag, util/winutil: expose Windows policy key 2 years ago
osshare all: update copyright and license headers 3 years ago
osuser ssh/tailssh,util: extract new osuser package from ssh code (#10170) 2 years ago
pidowner all: update copyright and license headers 3 years ago
precompress all: update copyright and license headers 3 years ago
progresstracking ipn/localapi: add support for multipart POST to file-put 2 years ago
quarantine all: update copyright and license headers 3 years ago
race util/race: add test to confirm we don't leak goroutines 2 years ago
racebuild all: update copyright and license headers 3 years ago
rands util/rands: add Shuffle and Perm functions with on-stack RNG state 2 years ago
reload util/reload: add new package to handle periodic value loading 2 years ago
ringbuffer wgengine/magicsock: don't use endpoint debug ringbuffer on mobile. 2 years ago
set util/set: implement json.Marshaler/Unmarshaler (#10308) 2 years ago
singleflight all: update copyright and license headers 3 years ago
slicesx util/slicesx: add Filter function 2 years ago
syspolicy util/syspolicy: add 'ResetToDefaults' (#11194) 2 years ago
sysresources util/sysresources, magicsock: scale DERP buffer based on system memory 3 years ago
systemd all: update copyright and license headers 3 years ago
testenv util/testenv: add new package to hold InTest 2 years ago
topk util/topk: add package containing a probabilistic top-K tracker 2 years ago
truncate util/truncate: support []byte as well (#11614) 2 years ago
uniq all: update copyright and license headers 3 years ago
vizerror util/vizerror: add As function to get wrapped Error 3 years ago
winutil util/winutil/winenv: add package for current Windows environment details 2 years ago
zstdframe util/zstdframe: support specifying a MaxWindowSize (#11595) 2 years ago