feat: small speed up to ServiceInfo construction (#1346) · python-zeroconf/python-zeroconf@b329d99
@@ -77,9 +77,9 @@ cdef class ServiceInfo(RecordUpdateListener):
7777 cdef void _generate_decoded_properties(self)
78787979@cython.locals(properties_contain_str=bint)
80- cpdef _set_properties(self, cython.dict properties)
80+ cpdef void _set_properties(self, cython.dict properties)
818182- cdef _set_text(self, cython.bytes text)
82+ cdef void _set_text(self, cython.bytes text)
83838484@cython.locals(record=DNSAddress)
8585 cdef _get_ip_addresses_from_cache_lifo(self, object zc, double now, object type)
@@ -94,9 +94,9 @@ cdef class ServiceInfo(RecordUpdateListener):
9494@cython.locals(cache=DNSCache)
9595 cdef cython.list _get_address_records_from_cache_by_type(self, object zc, object _type)
969697- cdef _set_ipv4_addresses_from_cache(self, object zc, double now)
97+ cdef void _set_ipv4_addresses_from_cache(self, object zc, double now)
989899- cdef _set_ipv6_addresses_from_cache(self, object zc, double now)
99+ cdef void _set_ipv6_addresses_from_cache(self, object zc, double now)
100100101101 cdef cython.list _ip_addresses_by_version_value(self, object version_value)
102102@@ -121,7 +121,7 @@ cdef class ServiceInfo(RecordUpdateListener):
121121@cython.locals(cacheable=cython.bint)
122122 cdef cython.set _get_address_and_nsec_records(self, object override_ttl)
123123124- cpdef async_clear_cache(self)
124+ cpdef void async_clear_cache(self)
125125126126@cython.locals(cache=DNSCache)
127- cdef _generate_request_query(self, object zc, double now, object question_type)
127+ cdef DNSOutgoing _generate_request_query(self, object zc, double now, object question_type)