4 ms·
Don’t create new objects, instead use stack and/or unmanaged heap. This reduces the expressive power of the language, for example LINQ from the standard librar
by Const-me 3y ago
Don’t create new objects, instead use stack and/or unmanaged heap.
This reduces the expressive power of the language, for example LINQ from the standard library is probably out because based on the delegates which require memory allocations.
Still, the language is very usable even without GC allocations. For example, that library re-implements a subset of ffmpeg for Raspberry Pi4 running 32-bit Linux, with no memory allocations in runtime: https://github.com/Const-me/Vrmac/tree/master/VrmacVideo https://github.com/Const-me/Vrmac/tree/master/VrmacVideo