4 ms·
I'm quite sure that's still the case. MRI will never return memory to the OS. (I am open to being corrected, since it has been several major versions since I
by nilved 10y ago
I'm quite sure that's still the case. MRI will never return memory to the OS. (I am open to being corrected, since it has been several major versions since I verified this.)
- nateberkopec 10y agoIt's true in practice but not in theory. Ruby can't defragment memory pages - if there is an active object in any heap page, it cannot be released back to the OS. Technically, Ruby does release empty pages back to the OS, but in practice, heap pages are rarely completely empty.