mirror of
https://github.com/esphome/esphome.git
synced 2026-02-26 05:53:12 -07:00
web-server-idf-make-unique-for-overwrite
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
495 MiB
Languages
C++
64.1%
Python
35.6%
C
0.2%
