• Deomid Ryabkov's avatar
    Minor memory shavings on ESP8266; ~2.5K less · e17fdcb0
    Deomid Ryabkov authored
     - 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
    e17fdcb0
Name
Last commit
Last update
docs Loading commit data...
examples Loading commit data...
jni Loading commit data...
tools Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
mongoose.c Loading commit data...
mongoose.h Loading commit data...