mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 01:44:20 -07:00
371e9a98709dc7129d4bebbcaf75b823c01c5819
The multipart receive buffer is immediately written by httpd_req_recv() before any read occurs, and only recv_len bytes (the amount actually received) are subsequently passed to the parser. Zero-initialization via make_unique is therefore unnecessary overhead. Switch to C++20 make_unique_for_overwrite which skips value-initialization for POD types, avoiding a redundant memset of the 1460-byte buffer on every multipart upload request.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
516 MiB
Languages
C++
64.1%
Python
35.5%
C
0.3%
