Re:Ruby has been fast enough for 13 years
by nilved on Monday May 16, 2016 @02:27PM
(#11708430)
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.)
[ Parent
| on HN ]
Re:Ruby has been fast enough for 13 years
by nateberkopec on Monday May 16, 2016 @02:42PM
(#11708544)
It'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.