This post originated from an RSS feed registered with Ruby Buzz
by Red Handed.
Original Post: The Fully Upturned Bin
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
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.