You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mike O'Driscoll
bb59942df2
types/key: use AvailableBuffer for WriteRawWithoutAllocating ( #19102 )
...
Use bufio.Writer.AvailableBuffer to write the 32-byte public key
directly into bufio's internal buffer as a single append+Write,
avoiding 32 separate WriteByte calls. Fall back to the existing
byte-at-a-time path when the buffer has insufficient space.
```
name old ns/op new ns/op speedup
NodeWriteRawWithoutAllocating-8 121 12.5 ~9.7x
(0 allocs/op in both)
```
Add BenchmarkNodeWriteRawWithoutAllocating and expand
TestNodeWriteRawWithoutAllocating to cover both fast (AvailableBuffer)
and slow (WriteByte fallback) paths with correctness and allocation
checks.
Updates tailscale/corp#38509
Signed-off-by: Mike O'Driscoll <mikeo@tailscale.com>
3 weeks ago
..
appctype
appc,feature/conn25,net: Add DNS response interception for conn25
2 months ago
bools
all: remove AUTHORS file and references to it
3 months ago
dnstype
all: remove AUTHORS file and references to it
3 months ago
empty
all: remove AUTHORS file and references to it
3 months ago
events
wgengine/magicsock,control/controlclient: do not overwrite discokey with old key ( #18606 )
4 weeks ago
flagtype
all: remove AUTHORS file and references to it
3 months ago
geo
types/geo: fix floating point bug causing NaN returns in SphericalAngleTo ( #18777 )
2 months ago
iox
all: remove AUTHORS file and references to it
3 months ago
ipproto
all: use Go 1.26 things, run most gofix modernizers
1 month ago
jsonx
types/ptr: deprecate ptr.To, use Go 1.26 new
1 month ago
key
types/key: use AvailableBuffer for WriteRawWithoutAllocating ( #19102 )
3 weeks ago
lazy
all: use Go 1.26 things, run most gofix modernizers
1 month ago
logger
all: remove AUTHORS file and references to it
3 months ago
logid
all: remove AUTHORS file and references to it
3 months ago
mapx
all: remove AUTHORS file and references to it
3 months ago
netlogfunc
all: remove AUTHORS file and references to it
3 months ago
netlogtype
all: remove AUTHORS file and references to it
3 months ago
netmap
all: use Go 1.26 things, run most gofix modernizers
1 month ago
nettype
all: remove AUTHORS file and references to it
3 months ago
opt
all: remove AUTHORS file and references to it
3 months ago
persist
tailcfg: reintroduce UserProfile.Groups
1 month ago
prefs
types/ptr: deprecate ptr.To, use Go 1.26 new
1 month ago
preftype
all: remove AUTHORS file and references to it
3 months ago
ptr
types/ptr: deprecate ptr.To, use Go 1.26 new
1 month ago
result
all: remove AUTHORS file and references to it
3 months ago
structs
all: remove AUTHORS file and references to it
3 months ago
tkatype
all: remove AUTHORS file and references to it
3 months ago
views
all: use Go 1.26 things, run most gofix modernizers
1 month ago