Skip to content

Commit b329d99

Browse files
authored
feat: small speed up to ServiceInfo construction (#1346)
1 parent c65d869 commit b329d99

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/zeroconf/_services/info.pxd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ cdef class ServiceInfo(RecordUpdateListener):
7777
cdef void _generate_decoded_properties(self)
7878

7979
@cython.locals(properties_contain_str=bint)
80-
cpdef _set_properties(self, cython.dict properties)
80+
cpdef void _set_properties(self, cython.dict properties)
8181

82-
cdef _set_text(self, cython.bytes text)
82+
cdef void _set_text(self, cython.bytes text)
8383

8484
@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)
9696

97-
cdef _set_ipv4_addresses_from_cache(self, object zc, double now)
97+
cdef void _set_ipv4_addresses_from_cache(self, object zc, double now)
9898

99-
cdef _set_ipv6_addresses_from_cache(self, object zc, double now)
99+
cdef void _set_ipv6_addresses_from_cache(self, object zc, double now)
100100

101101
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)
123123

124-
cpdef async_clear_cache(self)
124+
cpdef void async_clear_cache(self)
125125

126126
@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)

0 commit comments

Comments
 (0)