4 ms·
> Many users of C++ pay a performance cost for the language's lack of automatic memory management. Now that's just empty rhetoric. What about 'users of Java pa
by Shorel 14y ago
> Many users of C++ pay a performance cost for the language's lack of automatic memory management.
Now that's just empty rhetoric. What about 'users of Java pay a performance cost for not having a stack, and creating every single object in the heap'?
I don't pay for unneeded garbage collection, and you can't use your rhetoric around it.
- snogglethorpe 14y agoYup... I've seen a lot of java code aiming at high-performance that does awkward/ugly things (e.g., class-static objects which are actually constantly-reused temporary objects, manually-managed temporary object pools, etc) to avoid heap-allocation, in cases where C++ code would simply use its very natural stack-allocation.