The Fully Upturned Bin
I have something for you. I’ve just wrapped up a very sobering article on memory management in Ruby which will sure be a slap in the face to all of you raging deviants. Let’s not let this continue to be a shrouded and ignored issue.
I won’t say I’ve hit the nail on the head with this essay. It’s a brutal read: The Fully Upturned Bin.
The synopsis is:
- Quit lying to yourself, you control GC.
- Rather than leaving trash and temporary objects everywhere, try to save the pieces and throw them away at once.
- Don’t hang on to useless data, isolate its use into a scope.
- Use Ruby’s ALLOC_N in your extensions.
Thankyou. I think we’re all better now.