Re:A Pure HTTP/3 Alternative to MQTT-over-QUIC in Resource-C...
by goalieca on Sunday June 27, 2021 @12:12PM
(#27652734)
> Quic implementations usually do that via dynamic allocations - and pretty much all the libraries do a lot of them.
Any mission critical system or true embedded system will have some maximum limits defined and will reserve a table in memory with static allocation. It’ll be well packed and cache friendly too.
I bet within a few years there will be a « Show HN » for some uQUIC written in zig that does just this.
Quic implementations usually do that via dynamic allocations - and pretty much all the libraries do a lot of them.
For resource constrained systems you usually want the opposite: no dynamic allocations to avoid the chance to run out of memory or to be subject to memory fragmentation issues. You might be able to work around this a bit with a custom allocator that is only used by one particular library, but guarantees are still on the low end.
Tcp in comparison is easier to implement with static resources. TLS is also easier, it mainly requires a full TLS frame sized buffer for sending and receiving (or at least 16kB for receiving). And still that has shown to be a big implementation hurdle for many devices.