feat: small speed up to writing outgoing packets (#1316) · python-zeroconf/python-zeroconf@cd28476
@@ -32,6 +32,7 @@ cdef object LOGGING_DEBUG
32323333cdef cython.tuple BYTE_TABLE
3434cdef cython.tuple SHORT_LOOKUP
35+cdef cython.dict LONG_LOOKUP
35363637cdef class DNSOutgoing:
3738@@ -70,7 +71,7 @@ cdef class DNSOutgoing:
7071index=cython.uint,
7172length=cython.uint
7273 )
73- cdef cython.bint _write_record(self, DNSRecord record, object now)
74+ cdef cython.bint _write_record(self, DNSRecord record, float now)
74757576@cython.locals(class_=cython.uint)
7677 cdef _write_record_class(self, DNSEntry record)
@@ -91,7 +92,7 @@ cdef class DNSOutgoing:
91929293 cdef bint _has_more_to_add(self, unsigned int questions_offset, unsigned int answer_offset, unsigned int authority_offset, unsigned int additional_offset)
939494- cdef _write_ttl(self, DNSRecord record, object now)
95+ cdef _write_ttl(self, DNSRecord record, float now)
95969697@cython.locals(
9798labels=cython.list,