Commit Graph

18 Commits

Author SHA1 Message Date
Tom Thorogood
b9e1e7529b Avoid calling RR.Header more than once per RR (#891)
* Avoid calling RR.Header more than once per RR

Header is an interface method so there's non-zero overhead when calling
it.

* Reset entire RR_Header in SIG.Sign

This is equivilant (while also clearing Rdlength) while being simpler.
2019-01-04 08:12:32 +00:00
Miek Gieben
df46691620
Add IsDuplicate function (#699)
The makes checking for duplicates more efficient, as you don't have to
use String() and re-parse elements from it anymore.

Fixes #679
2018-06-23 09:12:31 +01:00
Miek Gieben
e508eecd67
Some linter fixes from Go report card. (#601)
Implement small linter fixes.
2017-12-06 11:31:56 +00:00
Miek Gieben
957df53567 some memory optimisations 2015-08-31 16:50:42 +01:00
Miek Gieben
fb82119b66 less memory use 2015-08-31 16:48:28 +01:00
Miek Gieben
0206070abf Address commments from Alex 2015-08-26 14:13:14 +01:00
Miek Gieben
ac493072c7 Correctly handle CNAME/DNAMEs 2015-08-26 12:19:22 +01:00
Miek Gieben
e1d5f172ae More tests 2015-08-26 11:26:45 +01:00
Miek Gieben
aec78ad5e4 more docs 2015-08-26 07:35:55 +01:00
Miek Gieben
0ce87cb3da More and better tests 2015-08-26 07:34:51 +01:00
Miek Gieben
fba9ecdf79 Rework a little and more tests 2015-08-25 22:35:10 +01:00
Miek Gieben
34e4ada672 mpre 2015-08-25 14:28:00 +01:00
Miek Gieben
350b578e76 more wip 2015-08-25 13:52:53 +01:00
Miek Gieben
ec2b1b7be3 wip 2015-08-25 10:32:08 +01:00
Miek Gieben
a2fc07f45a WIP kill otherdata for cname and dname 2015-08-25 09:30:43 +01:00
Miek Gieben
4bca364480 Cleanup the tests and add some doc string 2015-08-25 08:39:43 +01:00
Miek Gieben
3daa798e14 Small tweak, next cleanup the tests 2015-08-25 06:52:56 +01:00
Miek Gieben
79547a0341 Add Dedup function
Add function that dedups a list of RRs. Work on strings, which
adds garbage, but seems to be the least intrusive and takes the
last amount of memory.

Some fmt changes snook in as well.
2015-08-24 22:02:57 +01:00