trussed-dev / trussed

Modern Cryptographic Firmware
https://trussed.dev
Apache License 2.0
405 stars 26 forks source link

Use a reference to the interchange data instead of copying it to the stack #122

Closed sosthene-nitrokey closed 1 year ago

sosthene-nitrokey commented 1 year ago

In theory this should reduce memory usage and improve performance.

On hardware I did not notice an actual performance improvement though.

sosthene-nitrokey commented 1 year ago

Checking with -Z emit-stack-sizes: this makes the trussed task go from 21784 to 16976 bytes of stack usage.