f73431ac06
* Switch utc_to_timestamp to .timestamp() .timestamp() is faster now in newer cpython ``` from homeassistant.util.dt import utc_to_timestamp, utcnow import timeit now = utcnow() print(timeit.timeit('utc_to_timestamp(now)',globals={"now":now,"utc_to_timestamp":utc_to_timestamp})) print(timeit.timeit('now.timestamp()',globals={"now":now})) ``` utc_to_timestamp = 0.18721245788037777 timestamp = 0.11421508435159922 * compat * revert * revert * revert * revert * revert |
||
---|---|---|
.. | ||
auto_repairs | ||
history | ||
models | ||
system_health | ||
table_managers | ||
__init__.py | ||
backup.py | ||
const.py | ||
core.py | ||
db_schema.py | ||
entity_registry.py | ||
executor.py | ||
filters.py | ||
manifest.json | ||
migration.py | ||
pool.py | ||
purge.py | ||
queries.py | ||
repack.py | ||
services.py | ||
services.yaml | ||
statistics.py | ||
strings.json | ||
tasks.py | ||
util.py | ||
websocket_api.py |