9 ms·
more exactly malloc and free typically gives you shitty time guarantee. The usual thing people do in real time is bailing out of any dynamic allocation, they k
by nraynaud 12y ago
more exactly malloc and free typically gives you shitty time guarantee.
The usual thing people do in real time is bailing out of any dynamic allocation, they know malloc is not good, they are afraid or don't want to deal with real time GC, and/or they know that if they do all the allocation first, they have a grasp on the worst case of their loop (I think the real answer is that it's a tradition).