<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <link>http://persumi.com/u/fredwu/tech/e/blog/t/garbage collection</link>
    <generator>Persumi - Level up your writing and blogging with AI</generator>
    <category>Blog</category>
    <category>Tech</category>
    <pubDate>Mon, 25 May 2026 06:48:18 +0000</pubDate>
    <description/>
    <title>Blog (garbage collection) - Fred Wu&apos;s Tech</title>
    <atom:link type="application/rss+xml" rel="self" href="http://persumi.com/u/fredwu/tech/e/blog/t/garbage collection/feed/rss"></atom:link>
    <item>
      <pubDate>Fri, 06 Sep 2013 11:13:37 +0000</pubDate>
      <guid>http://persumi.com/u/fredwu/tech/e/blog/p/protip-ruby-devs-please-tweak-your-gc-settings-for-tests</guid>
      <comments>http://persumi.com/u/fredwu/tech/e/blog/p/protip-ruby-devs-please-tweak-your-gc-settings-for-tests</comments>
      <category>Blog</category>
      <category>Tech</category>
      <author>ifredwu@gmail.com (Fred Wu)</author>
      <description>&lt;![CDATA[&lt;p&gt;
It was made apparent to me that many ruby devs either aren’t aware or couldn’t be bothered to tweak their ruby garbage collector settings.&lt;/p&gt;
&lt;p&gt;
Well, if you are using MRI, please start tweaking your GC settings. Here’s what I use (on my 15” Macbook Pro Retina):&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;shell language-shell&quot;&gt;export RUBY_GC_MALLOC_LIMIT=90000000
export RUBY_FREE_MIN=200000&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
Not only can you tweak it for your local dev machine, you can also tweak Jenkins, &lt;a href=&quot;http://travis-ci.com/&quot;&gt;Travis CI&lt;/a&gt;, &lt;a href=&quot;http://wercker.com/&quot;&gt;Wercker&lt;/a&gt; and other CI solutions, making instant speed gain for your test suite!&lt;/p&gt;
&lt;p&gt;
Here’s what we get:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;shell language-shell&quot;&gt;            Before After
Local:      8m22s 5m52s
Travis CI:  10m10s 6m0s
Wercker:    8m45s 6m24s&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
YMMV depending on your system and available RAM.&lt;/p&gt;
]]&gt;</description>
      <link>http://persumi.com/u/fredwu/tech/e/blog/p/protip-ruby-devs-please-tweak-your-gc-settings-for-tests</link>
      <title>Protip: Ruby Devs, Please Tweak Your GC Settings for Tests!</title>
    </item>
  </channel>
</rss>