dns/idn
Tom Thorogood b6ecf29d98 Improve performance by addressing some low hanging fruit. (#444)
* Remove unused bytes.Buffer from dns/idn.encode.

This buffer is truncated and written to but never read from. It
serves no purpose and all tests pass with it removed.

It appears to have been introduced when puncycode.go was first
added in miekg/dns@e3c2c07.

* Produce less pointless garbage.

This change:
- removes several needless []byte -> string conversions,
- removes two needless append calls in HashName, and
- writes the hash to the same nsec3 []byte in HashName rather
  than creating a new []byte on each of the k iterations.

These are all minor performance improvements that will likely
go entirely unnoticed. The changes will reduce the ammount of
garbage produced when calling CertificateToDANE, HashName,
(*SIG).Sign and TsigGenerate.
2017-02-02 07:33:49 +00:00
..
code_points.go better name for the file that store the code points list 2015-07-16 08:05:59 -03:00
example_test.go Added examples for Punycode lib. Makes godoc look pretty. 2014-09-18 10:03:14 -04:00
punycode.go Improve performance by addressing some low hanging fruit. (#444) 2017-02-02 07:33:49 +00:00
punycode_test.go Do simple prechecks to avoid heap allocations 2015-08-13 04:50:02 +00:00