Remove a ton of dict lookups for minor perf gains

This commit is contained in:
Josh Klar
2018-09-30 22:50:04 -07:00
parent a089675aa8
commit 784f8885bd
4 changed files with 85 additions and 69 deletions

View File

@@ -43,7 +43,7 @@ class HIDHelper:
self.report_non_mods = memoryview(self._evt)[3:]
def _subscription(self, state, action):
if action['type'] == HID_REPORT_EVENT:
if action[0] == HID_REPORT_EVENT:
self.clear_all()
consumer_key = None