On Sun, Sep 18, 2011 at 8:42 PM, Josh Cheek <josh.cheek / gmail.com> wrote:

> Some reasons differences between the Ruby and Java versions are that Ruby
> doesn't have primitives, so all those numbers are objects (ie using Java's
> Integer rather than int).

This is not 100% true.  While they are from a language user's
perspective under the hood there are some optimizations especially for
Fixnums.  This still leaves overhead for method invocation but memory
usage is very low and there is no GC overhead.

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/