mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-26 22:08:43 +01:00
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.