Ben Burkert c73622c772 dns/dnsmessage: add AppendPack method to Message
Add an AppendPack method to Message that appends the message data into a
byte buffer. Reusing a buffer allows for a reduction in allocations.

name          time/op
Pack-8        5.04µs ± 1%
AppendPack-8  4.95µs ± 2%

name          alloc/op
Pack-8        6.22kB ± 0%
AppendPack-8  5.71kB ± 0%

name          allocs/op
Pack-8          21.0 ± 0%
AppendPack-8    20.0 ± 0%

Change-Id: I8bb6b07787cf2ba9ef32e1e60a3003a585ec55be
Reviewed-on: https://go-review.googlesource.com/45274
Reviewed-by: Ian Gudger <igudger@google.com>
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-10-27 10:38:34 +00:00
2017-06-13 04:21:24 +00:00
2017-06-21 08:22:27 +00:00
2017-10-24 11:51:30 +00:00
2017-05-09 22:28:08 +00:00
2017-10-19 16:49:06 +00:00
2017-10-26 23:40:51 +00:00
2017-09-15 14:21:06 +00:00
2014-12-08 10:44:07 +11:00
2015-03-18 17:04:12 +00:00
2015-02-18 23:42:41 +00:00
2012-03-17 15:20:00 +11:00
2017-09-27 05:51:02 +00:00

Go Networking

This repository holds supplementary Go networking libraries.

Download/Install

The easiest way to install is to run go get -u golang.org/x/net. You can also manually git clone the repository to $GOPATH/src/golang.org/x/net.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with "x/net:" in the subject line, so it is easy to find.

Description
[mirror] Go supplementary network libraries
Readme BSD-3-Clause 13 MiB
Languages
Go 99.9%