Certain messages sent by the MLAPI has a fixed length. (Fixed as in constant size or a size that depends on the NetworkConfig which won't change during runtime).
These messages currently allocate their memory at runtime. These could be preallocated when the MLAPI get's initialized. The allocations are not big, just a few bytes but there is no reason not to pre-allocate them.
Certain messages sent by the MLAPI has a fixed length. (Fixed as in constant size or a size that depends on the NetworkConfig which won't change during runtime).
These messages currently allocate their memory at runtime. These could be preallocated when the MLAPI get's initialized. The allocations are not big, just a few bytes but there is no reason not to pre-allocate them.