Skip to content

esp32/stm32: Use 4kiB output buffer for mbedtls sockets. - #5306

Closed
jimmo wants to merge 2 commits into
micropython:masterfrom
jimmo:mbedtls-buffers
Closed

jimmo wants to merge 2 commits into
micropython:masterfrom
jimmo:mbedtls-buffers

Conversation

@jimmo

@jimmo jimmo commented Nov 7, 2019

Copy link
Copy Markdown
Member

See #5303 for more details, but in summary:

  • The default 16kiB output buffer (same as the input buffer) is expensive.
  • On ESP32 (non-psram) we don't have enough RAM available to allocate the original 16kiB due to RAM region fragmentation in IDF 4.x.

@dpgeorge

dpgeorge commented Nov 8, 2019

Copy link
Copy Markdown
Member

Thanks. I think for stm32 to wait until after v1.12 because it's a subtle change. But esp32 is needed for IDF4 to work so can go in now.

@dpgeorge

Copy link
Copy Markdown
Member

The esp32 change was merged in 71299d3

@dpgeorge

Copy link
Copy Markdown
Member

The stm32 change was merged in 90f2864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants