4 ms·
It depends on memory usage patterns. In some cases Java's GC could be even faster than malloc/free. I could say more, it's meaningless to discuss such provocati
by kushti 13y ago
It depends on memory usage patterns. In some cases Java's GC could be even faster than malloc/free. I could say more, it's meaningless to discuss such provocative topic as "performance" with no any details.
- shmerl 13y agoOf course it depends. My point is, it's too unpredictable, even if you assume certain patterns are better or worse. That's why systems with RAII are much better by design in this aspect.
- deleted 13y ago[deleted]
- pjmlp 13y agoRAII semantics can be implemented in most GC languages nowadays with try/using/with/... Or with lambdas if the language allows for it. RAII in C++ is a good pattern, but it does not avoid performance penalty of cascading release of resources, impossibility of using exceptions in destructors or thread contention with shared resources.
- samplonius 13y agoThis is just cargo cult thinking: Java is bad. GC is bad. C++ is not Java, so it is good. The only thing to do, is get on your coconut radio and wait for the planes to bring you some cargo. While you are waiting, Kafka is a useful MQ for event processing and is being used to solve real world problems today.
- shmerl 13y agoYou obviously didn't get the point.
- oscargrouch 13y agoHe gives a technical based explanation, wich is pretty accurate.. and not a emotional biased answer..