You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a large MTU / RAW_FRAME_LENGTH_MAX at 0x1000, 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.
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?
The text was updated successfully, but these errors were encountered:
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.
ENC424J600/src/tx.rs
Lines 54 to 60 in 010be3e
ENC424J600/src/lib.rs
Lines 161 to 163 in 010be3e
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?
The text was updated successfully, but these errors were encountered: