title: Ruby 2.1.5p273 Time comparison with memory growth / leak?
body: <p>I spent a week to figure out why a one of my ruby script was growing in memory. I found the culprit line but i can't figure out why it grows in memory in one case and not in the other :</p>
  
  <p>I have a simple eternal loop with a condition on a Time object :</p>
  
  <pre><code>i        = 0
  lastTry = Time.now()
  
  until i == 5    
    if (lastTry + 0.75) &lt;  Time.now
      puts '.'
      lastTry = Time.now()
    end    
  end
  </code></pre>
  
  <p>This will produce a process that will eat memory until my ram is full and eventually my kernel will stop allowing me forks or will panic at some point. Bad for my client. </p>
  
  <p>If i replace my if with this : </p>
  
  <pre><code>if ((Time.now() - lastTry) * 1000.0) &gt; 750.0
  </code></pre>
  
  <p>It won't eat memory anymore. </p>
  
  <p>-> as stated in the comment, i could confirm that the origin of this is related to the outdated version of ruby used on my customer environment. </p>