What are your strategies to keep the memory usage low?


Staff member
<a href="http://www.ruby-lang.org" rel="nofollow noreferrer">Ruby</a> is truly memory-hungry - but also worth every single bit.

What do you do to keep the memory usage low? Do you avoid big strings and use smaller arrays/hashes instead or is it no problem to concern about for you and let the garbage collector do the job?

<strong>Edit</strong>: I found a nice article about this topic <a href="http://gnomecoder.wordpress.com/2007/10/02/rubys-garbage-collection-problem/" rel="nofollow noreferrer">here</a> - old but still interesting.