Commit Graph

11 Commits

Author SHA1 Message Date
Miek Gieben
db41985b91 copy the optimization from go tip into here 2013-08-23 18:41:35 +00:00
Ray Bejjani
9d2d8b36eb SplitDomainName handles non-FQDN labels correctly, doesn't return '.' in parts.
SplitDomainName would always include the '.' after each label segment. This was
inconsistent with the "." case (were it returned nil) and didn't seem too useful
since it required more processing to remove the '.' (like when building a
compression dictionary in Msg.Len() or Msg.Pack()). It also had issues with the
last segment, not including it in the split. It now returns all segments,
including the last, irrespective of the label being fully qualified.
A test has also been added to ensure no regressions.
2013-06-25 10:53:30 -07:00
Miek Gieben
76db7d1a62 add benchmarking 2013-06-22 09:40:00 +01:00
Miek Gieben
9762efef1e Use new names 2013-06-22 08:48:26 +01:00
Miek Gieben
2b65c92022 Merge branch 'master' of github.com:miekg/dns 2013-06-22 08:45:58 +01:00
Miek Gieben
bb732937a2 Add Benchmarking functions 2013-06-22 08:40:02 +01:00
Miek Gieben
38ea608d79 Rename the Label* functions
SplitLabels -> SplitDomainName
CompareLabels -> CompareDomainName
LenLabels -> CountLabel
          -> NextLabel was added as a simple iterator-like function
2013-06-22 07:21:15 +00:00
Miek Gieben
9640d43c82 Make SplitLabels use Split 2013-06-21 15:17:12 +00:00
Miek Gieben
a16b289765 Add todo 2013-06-20 20:36:13 +00:00
Miek Gieben
f595bf7a06 Set license on test files 2013-05-12 16:09:52 +02:00
Miek Gieben
1bcfaec67f more radix stuff 2012-08-01 07:30:45 -07:00