3 ms·
My experience with GC on Android is that it's nice when it works, but when you have to optimize you're screwed. I'd rather have a system like in Swift where the
by blub 12y ago
My experience with GC on Android is that it's nice when it works, but when you have to optimize you're screwed. I'd rather have a system like in Swift where the destruction of objects is deterministic. deinit can take care of releasing resources in time.
C++ offers the most flexibility, and using containers and smart pointers makes code that doesn't care much about memory look quite decent too. I have to admit that Swift makes it a breeze though, you don't have as much overhead in thinking about memory management.
- debacle 12y agoWhile I don't have the same experience as you do on Android, I agree with your sentiment completely. When GC gets in the way, it should be easy to turn the GC off and fly solo. Some languages provide that functionality, others (Java) don't.