Minor memory shavings on ESP8266; ~2.5K less
- Only allow one TCP segment in flight. Each segment is 1.5K and it adds up. This may increase latency, but memory is precious on ESP. At teh same time, optimize use of tcp_output: do not send a new segment on every write, only call tcp_output at the end of connection processing during poll. - Build LWIP with DNS disabled. We have our won resolver, and LWIP's allocates large static buffers (1K). - mbedTLS: Deallocate peer's certificate at the end of SSL handshake, reduces idle SSL connection footprint by ~1.5K. Some tweaks to the heap log viewer (which made all the above possible). PUBLISHED_FROM=6e84bba64eacb2d737561e09313918104921ea80
Showing
Please
register
or
sign in
to comment