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.
 
 
 
 
 
 
Go to file
David Anderson 9cd4e65191 smallzstd: new package that constructs zstd small encoders/decoders.
It's just a config wrapper that passes "use less memory at the
expense of compression" parameters by default, so that we don't
accidentally construct resource-hungry (de)compressors.

Also includes a benchmark that measures the memory cost of the
small variants vs. the stock variants. The savings are significant
on both compressors (~8x less memory) and decompressors (~1.4x less,
not including the savings from the significantly smaller
window on the compression side - with those savings included it's
more like ~140x smaller).

BenchmarkSmallEncoder-8            	   56174	     19354 ns/op	      31 B/op	       0 allocs/op
BenchmarkSmallEncoderWithBuild-8   	    2900	    382940 ns/op	 1746547 B/op	      36 allocs/op
BenchmarkStockEncoder-8            	   48921	     25761 ns/op	     286 B/op	       0 allocs/op
BenchmarkStockEncoderWithBuild-8   	     426	   2630241 ns/op	13843842 B/op	     124 allocs/op
BenchmarkSmallDecoder-8            	  123814	      9344 ns/op	       0 B/op	       0 allocs/op
BenchmarkSmallDecoderWithBuild-8   	   41547	     27455 ns/op	   27694 B/op	      31 allocs/op
BenchmarkStockDecoder-8            	  129832	      9417 ns/op	       1 B/op	       0 allocs/op
BenchmarkStockDecoderWithBuild-8   	   25561	     51751 ns/op	   39607 B/op	      92 allocs/op

Signed-off-by: David Anderson <danderson@tailscale.com>
4 years ago
.github Rename master -> main. 4 years ago
atomicfile scripts: add a license header checker. 4 years ago
cmd cmd/derper: fix embarassing bug introduced in earlier refactor 4 years ago
control/controlclient control/controlclient: fix copy/paste-o in debug knob accessor 4 years ago
derp derp: add frameClosePeer to move around clients within a region 4 years ago
disco disco: simplify expression, appease staticcheck 4 years ago
internal/deepprint internal/deepprint: update copyright header to appease license checker script 4 years ago
ipn smallzstd: new package that constructs zstd small encoders/decoders. 4 years ago
log/logheap log/logheap: appease staticcheck 4 years ago
logpolicy smallzstd: new package that constructs zstd small encoders/decoders. 4 years ago
logtail logtail: we missed a case for the backoff timer. 4 years ago
metrics metrics: add a LabelMap type for variables with 1 label dimension. 4 years ago
net net/netcheck, wgengine/magicsock: replace more UDPAddr with netaddr.IPPort 4 years ago
paths paths: use /var/db for state on BSDs, and /var/run for sockets. 4 years ago
portlist portlist: set SysProcAttr.HideWindow on Windows 4 years ago
safesocket safesocket: gofmt 4 years ago
scripts wgengine/router: split out from wgengine. 4 years ago
smallzstd smallzstd: new package that constructs zstd small encoders/decoders. 4 years ago
syncs syncs: add AtomicBool 4 years ago
tailcfg wgengine/magicsock: clean up discovery logging 4 years ago
tempfork tempfork/registry: work around issue with Tailscale's redo build system 4 years ago
tstest tstest/natlab: remove unused PacketConner type 4 years ago
tstime tstime: hand-implement parseInt for specific needs of rfc3339 parsing. 4 years ago
tsweb tsweb: JSONHandler: supports HTTPError 4 years ago
types types/opt: add Bool.EqualBool method 4 years ago
version version: add support for setting version with the -X Go linker flag 4 years ago
wgengine wgengine/magicsock: log less on no-op disco route switches 4 years ago
.gitattributes .gitattributes: add a smudge filter for go.mod. 4 years ago
.gitignore cmd/relaynode: drop local --acl-file in favour of central packet filter. 4 years ago
AUTHORS Move Linux client & common packages into a public repo. 4 years ago
CODE_OF_CONDUCT.md Add a code of conduct. 4 years ago
Dockerfile Dockerfile: install iproute2 in the container image. 4 years ago
LICENSE Move Linux client & common packages into a public repo. 4 years ago
Makefile Fix staticcheck warning, add Makefile with staticcheck targets, lock in staticcheck version in go.mod 4 years ago
PATENTS Move Linux client & common packages into a public repo. 4 years ago
README.md Dockerfile: add some usage docs, bump to Go 1.14 4 years ago
SECURITY.md Add a SECURITY.md for vulnerability reports. 4 years ago
go.mod smallzstd: new package that constructs zstd small encoders/decoders. 4 years ago
go.sum smallzstd: new package that constructs zstd small encoders/decoders. 4 years ago

README.md

Tailscale

https://tailscale.com

Private WireGuard® networks made easy

Overview

This repository contains all the open source Tailscale code. It currently includes the Linux client.

The Linux client is currently cmd/relaynode, but will soon be replaced by cmd/tailscaled.

Using

We serve packages for a variety of distros at https://pkgs.tailscale.com .

Building

go install tailscale.com/cmd/tailscale{,d}

We only guarantee to support the latest Go release and any Go beta or release candidate builds (currently Go 1.14) in module mode. It might work in earlier Go versions or in GOPATH mode, but we're making no effort to keep those working.

Bugs

Please file any issues about this code or the hosted service on the issue tracker.

Contributing

under_construction.gif

PRs welcome, but we are still working out our contribution process and tooling.

We require Developer Certificate of Origin Signed-off-by lines in commits.

About Us

We are apenwarr, bradfitz, crawshaw, danderson, dfcarney, from Tailscale Inc. You can learn more about us from our website.

WireGuard is a registered trademark of Jason A. Donenfeld.