4 ms·
How do you handle runtime - defined sizes then? Just preallocate maximum possible number of bytes?
by dgan 2y ago
How do you handle runtime - defined sizes then? Just preallocate maximum possible number of bytes?
- wheels 2y agoWell, usually in a realtime system you're required to produce something in a fixed amount of time. Designing the algorithms to not need variable amounts of memory is one of the challenges. Commonly you can have a buffer that's the largest you could reasonably work on in that time slice.