Skip to content

Commit d9be715

Browse files
authored
feat: small performance improvement to writing outgoing packets (#1482)
1 parent 22a0fb4 commit d9be715

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/zeroconf/_dns.pxd

Lines changed: 1 addition & 1 deletion
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)

src/zeroconf/_protocol/outgoing.pxd

Lines changed: 2 additions & 0 deletions
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

0 commit comments

Comments
 (0)