4 ms·
Got a friend who is in the high frequency trading industry and uses both Java and C#. I asked about GC. Turns out you just write code that doesn’t need to GC. O
by richardw 8mo ago
Got a friend who is in the high frequency trading industry and uses both Java and C#. I asked about GC. Turns out you just write code that doesn’t need to GC. Object pools, off-heap memory etc.
It won’t do the absolute fastest tasks in the stack quite as well but supposedly the coding speed and memory management benefits are more important, and there’s no GC so it’s reliable.
- PacificSpecific 8mo agoThat's what we do in games too. If you know the scope of your project and how to avoid dynamic allocation it's fine.
- zahlman 8mo ago> Turns out you just write code that doesn’t need to GC. Object pools, off-heap memory etc. Some GCd languages make this easier than others. Java and C# allow you to use primitive types. Even just doing some basic arithmetic in Python (at least CPython) is liable to create temporary objects; locals don't get stack-allocated.
- neonsunset 8mo ago[dead]