3 ms·
> Most languages that include garbage collection allow you to turn it off Hmm. Clearly I don't know much about this. How do you turn off garbage collection in
by shadowfox 13y ago
> Most languages that include garbage collection allow you to turn it off
Hmm. Clearly I don't know much about this. How do you turn off garbage collection in Java and (say) Python?
- kasey_junk 13y agoCan't say for python but in Java off heap steuctures are pretty standard for performance critical components.
- shadowfox 13y agoInteresting. Are there APIs to do this?
- tedivm 13y agoPython call gc.disable(). I'm not aware of any way to do it in Java other than raising the memory to available to such a high level that it doesn't become an issue (which would probably only work with processes that died, as opposed to long running programs).
- gcr 13y agogc.disable() introduces an unavoidable memory leak in my program. I also can't control the memory usage of the libraries I link against.