Whoever said it’s faster? It’s not.

The only virtue of GC is that it is automated, and it prevents memory leaks. If it were indeed faster, as implied by the questioner, there would have been little incentive to use the memory management mechanisms present in C/C++. These latter languages provide the programmer a predictable and precise model for managing memory, which managed languages like Java do not.

Original post: https://www.quora.com/If-garbage-collection-is-faster-than-manual-memory-management-in-C++-then-why-isn%E2%80%99t-everyone-using-it-What-are-the-pros-and-cons-of-using-GC/answer/Najeeb-Shaikh



Please spread the word among your friends & associates