Skip to content

Commit 7de655b

Browse files
authored
feat: small speed up to processing incoming records (#1345)
1 parent a0b8aed commit 7de655b

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/zeroconf/_services/browser.pxd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ cdef class _ServiceBrowserBase(RecordUpdateListener):
7070

7171
cpdef _generate_ready_queries(self, object first_request, object now)
7272

73-
cpdef _enqueue_callback(self, object state_change, object type_, object name)
73+
cpdef void _enqueue_callback(self, object state_change, object type_, object name)
7474

7575
@cython.locals(record_update=RecordUpdate, record=DNSRecord, cache=DNSCache, service=DNSRecord, pointer=DNSPointer)
76-
cpdef async_update_records(self, object zc, double now, cython.list records)
76+
cpdef void async_update_records(self, object zc, double now, cython.list records)
7777

7878
cpdef cython.list _names_matching_types(self, object types)
7979

@@ -89,4 +89,4 @@ cdef class _ServiceBrowserBase(RecordUpdateListener):
8989

9090
cpdef _cancel_send_timer(self)
9191

92-
cpdef async_update_records_complete(self)
92+
cpdef void async_update_records_complete(self)

src/zeroconf/_services/info.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ cdef class ServiceInfo(RecordUpdateListener):
6565
cdef public cython.set _get_address_and_nsec_records_cache
6666

6767
@cython.locals(record_update=RecordUpdate, update=bint, cache=DNSCache)
68-
cpdef async_update_records(self, object zc, double now, cython.list records)
68+
cpdef void async_update_records(self, object zc, double now, cython.list records)
6969

7070
@cython.locals(cache=DNSCache)
7171
cpdef bint _load_from_cache(self, object zc, double now)

src/zeroconf/_updates.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import cython
44

55
cdef class RecordUpdateListener:
66

7-
cpdef async_update_records(self, object zc, double now, cython.list records)
7+
cpdef void async_update_records(self, object zc, double now, cython.list records)
88

9-
cpdef async_update_records_complete(self)
9+
cpdef void async_update_records_complete(self)

0 commit comments

Comments
 (0)