-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: reduce latency to process messages (#161)
Improve `message_bus.py` `_process_message` performance with a `pxd` file
- Loading branch information
Showing
3 changed files
with
63 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import cython | ||
|
||
from .message cimport Message | ||
|
||
|
||
cdef object MessageType | ||
cdef object DBusError | ||
cdef object MessageFlag | ||
|
||
cdef object MESSAGE_TYPE_CALL | ||
cdef object MESSAGE_TYPE_SIGNAL | ||
|
||
cdef class BaseMessageBus: | ||
|
||
cdef public object unique_name | ||
cdef public object _disconnected | ||
cdef public object _user_disconnect | ||
cdef public object _method_return_handlers | ||
cdef public object _serial | ||
cdef public cython.list _user_message_handlers | ||
cdef public object _name_owners | ||
cdef public object _bus_address | ||
cdef public object _name_owner_match_rule | ||
cdef public object _match_rules | ||
cdef public object _high_level_client_initialized | ||
cdef public object _ProxyObject | ||
cdef public object _machine_id | ||
|
||
cpdef _process_message(self, Message msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters