2022.7: Performance improvements

This commit is contained in:
Franck Nijhof 2022-07-05 23:34:55 +02:00
parent 007d5cd9bd
commit 07ebc0ec8f
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -81,46 +81,30 @@ the recording of it right here!
## Improved stability and performance, and Python 3.10 ## Improved stability and performance, and Python 3.10
{% details "TODO" %} The quest to improve the performance of Home Assistant continues. For many
releases, [@bdraco] has been analyzing every single aspect of
Home Assistant and manages to make it faster every single release.
- Improve on story Usually, we have a section at the end of our release notes informing you
- Spelling/grammar about the performance improvements made. The improvements in this release,
- Something about start up reliability improvements however, are a big deal.
- Make it more to the point?
- Maybe split YAML from JSON
To add/process into this maybe: Our YAML & JSON tooling improved, using faster libraries and methods.
- Fix setup race when config entry is in a setup retry state ([@bdraco] - [#73145]) (noteworthy) JSON is used internally and for communication with the frontend, which is
- Prime platform.uname cache at startup to fix blocking subprocess in the event loop ([@bdraco] - [#73975]) (noteworthy) A LOT snappier now. If you use lots of YAML, you will undoubtedly notice this
- Check if requirements are installed in the executor ([@bdraco] - [#71611]) (noteworthy) when starting Home Assistant or reloading things like your automations 🚀.
{% enddetails %} Devices with an integration error during startup that can self-recover
The quest of improving the performance of Home Assistant continues. Normally,
we have a section at the end of our release notes, where we tell you about the
performance improvements that have been made. This release, it is a big deal.
For many releases [@bdraco] has been analyzing every single aspect of
Home Assistant and manages to make it faster every single release, but
an exceptional progress has been made this release!
The first one is that our YAML & JSON tooling has been optimized/replaced,
with faster libraries and methods. If you use lots of YAML configuration,
you will seriously notice this a lot when starting Home Assistant or
when reloading things like your automations 🚀. JSON is used a lot internally
and for communication with the frontend or APIs, making things A LOT snappier.
Devices with an integration error during startup, that are able to self recover,
will now do that instantly as soon as the device is discovered. will now do that instantly as soon as the device is discovered.
We now use an better and faster encryption method for the HomeKit Accessory We now use a better and faster encryption method for the HomeKit Accessory
Protocol (HAP). This improves the performance of the HomeKit, HomeKit Controller, Protocol (HAP). It improves the performance of the HomeKit, HomeKit Controller,
and Apple TV integrations and prepares Home Assistant for iOS 16. and Apple TV integrations and prepares Home Assistant for iOS 16.
Lastly, [@pvizeli] has been working hard to ship Home Assistant on Python 3.10! Lastly, [@pvizeli] has been working hard to ship Home Assistant on Python 3.10!
Which also brings quite an performance improvement. If you are running the Home Which also brings quite a performance improvement. If you run the Home Assistant
Assistant Operating System or use our container installation method, you will Operating System or use our container installation method, you will
automatically get this, no need to do anything. 🚀 automatically get this; there is no need to do anything. 🚀
[@bdraco]: https://github.com/bdraco [@bdraco]: https://github.com/bdraco
[@pvizeli]: https://github.com/pvizeli [@pvizeli]: https://github.com/pvizeli