Creating an Astral() instance seems to be surprisingly expensive. This was previously being done in every update, taking a non-trivial proportion of the (actual) CPU used by HA, that is, ignoring sleep/wait/idle states like being blocked on epoll. This patch caches the Astral instance to avoid recomputing it regularly. |
||
---|---|---|
.. | ||
auth | ||
components | ||
generated | ||
helpers | ||
scripts | ||
util | ||
__init__.py | ||
__main__.py | ||
block_async_io.py | ||
bootstrap.py | ||
config.py | ||
config_entries.py | ||
const.py | ||
core.py | ||
data_entry_flow.py | ||
exceptions.py | ||
loader.py | ||
package_constraints.txt | ||
requirements.py | ||
runner.py | ||
setup.py | ||
strings.json |