3 ms·
No dynamic allocation whatsoever I think this alone is an excellent reason to study the code, but only after you've already had a mental exercise of considerin
by userbinator 4y ago
No dynamic allocation whatsoever
I think this alone is an excellent reason to study the code, but only after you've already had a mental exercise of considering how you could write such an implementation without any dynamic allocation. One of the things that I've noticed in a lot of codebases is superfluous dynamic allocation, which can often be eliminated to make things simpler, more efficient, and removes a possible error-path.
- peter_d_sherman 4y agoExcellent point!
- als0 4y agoI think MbedTLS requires a memory allocator, which if true then BearSSL seems quite attractive. At least for simple scenarios. The advantage of MbedTLS is that it's starting to have more support for hardware accelerators.