commit | c73622c77280266305273cb545f54516ced95b93 | [log] [tgz] |
---|---|---|
author | Ben Burkert <ben@benburkert.com> | Sat Jun 10 18:16:46 2017 -0700 |
committer | Mikio Hara <mikioh.mikioh@gmail.com> | Fri Oct 27 10:38:34 2017 +0000 |
tree | ccdf9559149fc9c603cda407548f794764d31ff2 | |
parent | 7b572d500b0702f1ea30a47083ce2e1e5c61edba [diff] |
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>
This repository holds supplementary Go networking libraries.
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
.
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.