Avoid creating temporary lists (#25317)

That gives nano performance improvements as *() is slightly faster
then *[].
This commit is contained in:
nierob 2019-07-19 20:36:18 +00:00 committed by Paulus Schoutsen
parent caa7a3a3d6
commit 979f801488
13 changed files with 42 additions and 42 deletions

View file

@ -140,10 +140,10 @@ async def async_reproduce_state(
if to_call:
# run all domains in parallel
await asyncio.gather(*[
await asyncio.gather(*(
worker(domain, data)
for domain, data in to_call.items()
])
))
@bind_hass