mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Avoid linear searches for excluded events (#85851)
If the there are a lot of excluded events for the recorder, it can have a performance impact as the list has to be searched every time an event fires in HA
This commit is contained in:
parent
768c3e163d
commit
43fb68ed79
@ -186,7 +186,7 @@ class Recorder(threading.Thread):
|
|||||||
self.run_history = RunHistory()
|
self.run_history = RunHistory()
|
||||||
|
|
||||||
self.entity_filter = entity_filter
|
self.entity_filter = entity_filter
|
||||||
self.exclude_t = exclude_t
|
self.exclude_t = set(exclude_t)
|
||||||
|
|
||||||
self.schema_version = 0
|
self.schema_version = 0
|
||||||
self._commits_without_expire = 0
|
self._commits_without_expire = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user