feat: speed up writing outgoing dns records (#1259) · python-zeroconf/python-zeroconf@248655f

1122

import cython

334+

from ._protocol.outgoing cimport DNSOutgoing

5+4657

cdef object _LEN_BYTE

68

cdef object _LEN_SHORT

@@ -66,6 +68,8 @@ cdef class DNSAddress(DNSRecord):

66686769

cdef _eq(self, DNSAddress other)

687071+

cpdef write(self, DNSOutgoing out)

72+69737074

cdef class DNSHinfo(DNSRecord):

7175

@@ -75,6 +79,7 @@ cdef class DNSHinfo(DNSRecord):

75797680

cdef _eq(self, DNSHinfo other)

778182+

cpdef write(self, DNSOutgoing out)

78837984

cdef class DNSPointer(DNSRecord):

8085

@@ -84,6 +89,7 @@ cdef class DNSPointer(DNSRecord):

84898590

cdef _eq(self, DNSPointer other)

869192+

cpdef write(self, DNSOutgoing out)

87938894

cdef class DNSText(DNSRecord):

8995

@@ -92,6 +98,7 @@ cdef class DNSText(DNSRecord):

92989399

cdef _eq(self, DNSText other)

94100101+

cpdef write(self, DNSOutgoing out)

9510296103

cdef class DNSService(DNSRecord):

97104

@@ -104,6 +111,7 @@ cdef class DNSService(DNSRecord):

104111105112

cdef _eq(self, DNSService other)

106113114+

cpdef write(self, DNSOutgoing out)

107115108116

cdef class DNSNsec(DNSRecord):

109117

@@ -113,6 +121,7 @@ cdef class DNSNsec(DNSRecord):

113121114122

cdef _eq(self, DNSNsec other)

115123124+

cpdef write(self, DNSOutgoing out)

116125117126

cdef class DNSRRSet:

118127