Skip to content

Commit

Permalink
feat: small speed up to processing incoming records (#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Dec 15, 2023
1 parent a0b8aed commit 7de655b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/zeroconf/_services/browser.pxd
Expand Up @@ -70,10 +70,10 @@ cdef class _ServiceBrowserBase(RecordUpdateListener):

cpdef _generate_ready_queries(self, object first_request, object now)

cpdef _enqueue_callback(self, object state_change, object type_, object name)
cpdef void _enqueue_callback(self, object state_change, object type_, object name)

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

cpdef cython.list _names_matching_types(self, object types)

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

cpdef _cancel_send_timer(self)

cpdef async_update_records_complete(self)
cpdef void async_update_records_complete(self)
2 changes: 1 addition & 1 deletion src/zeroconf/_services/info.pxd
Expand Up @@ -65,7 +65,7 @@ cdef class ServiceInfo(RecordUpdateListener):
cdef public cython.set _get_address_and_nsec_records_cache

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

@cython.locals(cache=DNSCache)
cpdef bint _load_from_cache(self, object zc, double now)
Expand Down
4 changes: 2 additions & 2 deletions src/zeroconf/_updates.pxd
Expand Up @@ -4,6 +4,6 @@ import cython

cdef class RecordUpdateListener:

cpdef async_update_records(self, object zc, double now, cython.list records)
cpdef void async_update_records(self, object zc, double now, cython.list records)

cpdef async_update_records_complete(self)
cpdef void async_update_records_complete(self)

0 comments on commit 7de655b

Please sign in to comment.