Large stack memory usage #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(Cloned from https://github.com/smoltcp-rs/ENC424J600/issues/4. Authored by @occheung .)
Description
With a large MTU /
RAW_FRAME_LENGTH_MAX
at0x1000
, large amount stack space is consumed. Seems that large arrays are allocated onto the stack on transmitting/receiving packets.On transmitting case, these few lines of code may have contributed to this issue.
010be3e9eb/src/tx.rs (L54-L60)
010be3e9eb/src/lib.rs (L161-L163)
Shrinking
RAW_FRAME_LENGTH_MAX
to 1500 have improved this significantly in my case.Is it worth looking into reusing large arrays? Or even allow static buffers to be supplied by user?