6 ms·
Well said! Dynamic memory allocation is a really big performance hit, and in a lot of cases you can pre-allocate data structures on the stack for serious speed
by drderidder 11y ago
Well said! Dynamic memory allocation is a really big performance hit, and in a lot of cases you can pre-allocate data structures on the stack for serious speed improvements. Avoiding DMA was one of the secrets for writing blazing fast real time systems stuff when I was in telecom. I don't think those benefits have gone away.
- kristoffer 11y agoYou and I can't possibly have the same definition of DMA. It is essential to low latency data communication both in the embedded and server domain.
- bitwize 11y ago"Dynamic memory allocation", not "direct memory access".
- kristoffer 11y agoAh never seen dynamic memory allocation written as DMA before. Maybe obvious from the context but DMA really only has one meaning for me :)
- emcq 11y agoI think he was using a new acronym for Dynamic Memory Allocation rather than Direct Memory Access. I also was confused the first time I read it.
- vram22 11y agoI thought he meant the hardware-related meaning of DMA too, for a second. But the first line of his comment is: >Well said! Dynamic memory allocation is a really big performance hit