3 ms·
In every way? One could argue that having a GC is a disadvantage compared to Rust regardless of how good a GC it is. Main reason for that is because it might st
by palotasb 8y ago
In every way? One could argue that having a GC is a disadvantage compared to Rust regardless of how good a GC it is. Main reason for that is because it might still introduce unnecessary runtime overhead.
- nimmer 8y agoIt does not.
- monocasa 8y agoGCs absolutely increase memory pressure overhead, or are so conservative that they practically lead to slow leaks. You have to keep that metadata of "what is and isn't a pointer" somewhere and that comes with a cost.
- nimmer 8y agoMemory pressure is a different thing. And, once again, GC is optional.
- monocasa 8y ago> Memory pressure is a different thing. No it isn't. The GC has to touch that data, which means it's cache pressure, which means it's perf pressure. > And, once again, GC is optional. Sure, but it's an exclusive choice between memory safety and speed. Other languages let you have your cake and eat it too in that respect (Cyclone, Rust, etc.).
- tcoff91 8y agoAlso what about the data race detection stuff that rust does? A GC does not stop data races.