core/homeassistant/components/moon
Huon Wilson 2bbe8e0e6b
Cache Astral object in moon integration, to use less CPU (#44012)
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.
2020-12-10 16:31:54 -06:00
..
translations
__init__.py
manifest.json
sensor.py Cache Astral object in moon integration, to use less CPU (#44012) 2020-12-10 16:31:54 -06:00
strings.sensor.json