logoalt Hacker News

pjmlptoday at 5:07 PM1 replyview on HN

First of all it depends on the language, what GC models it supports, and what are the performance SLAs.

Secondly if we are talking about something like real time audio, or sending the maximum amount of triangles per second, then there is zero memory management, the code should be allocation free across all the critical path, regardless of the language.


Replies

whaleofatw2022today at 6:29 PM

Aka 'follow JSF guidelines that still apply to C and not just C++'.

I.e. all alloc should happen up front, functions should have predictable execution time, etc etc