feat: small performance improvement to writing outgoing packets (#1482) · python-zeroconf/python-zeroconf@d9be715

2 files changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -134,7 +134,7 @@ cdef class DNSService(DNSRecord):

134134

cdef class DNSNsec(DNSRecord):

135135
136136

cdef public cython.int _hash

137-

cdef public object next_name

137+

cdef public str next_name

138138

cdef public cython.list rdtypes

139139
140140

cdef _fast_init(self, str name, cython.uint type_, cython.uint class_, cython.float ttl, str next_name, cython.list rdtypes, double created)

Original file line numberDiff line numberDiff line change

@@ -108,6 +108,8 @@ cdef class DNSOutgoing:

108108
109109

cpdef void write_string(self, cython.bytes value)

110110
111+

cpdef void write_character_string(self, cython.bytes value)

112+
111113

@cython.locals(utfstr=bytes)

112114

cdef void _write_utf(self, cython.str value)

113115