From: Josh Cheek Date: 2012-05-26T13:33:35+09:00 Subject: Re: Memory-efficient set of Fixnums --f46d0435c0322cdea204c0e8f828 Content-Type: text/plain; charset=ISO-8859-1 On Thu, May 24, 2012 at 1:22 PM, Admin Tensor wrote: > George Dupre wrote in post #1062009: > > > > I will also look into this google_hash gem, it should also be useful. > > Hi, > > I think in Ruby speed is not the primary objective. So if you need the > code to run faster (by about the same order of magnitude), probably you > can transform the critical part into C. > > +1 The Pickaxe has a good section about this (it's actually about how to integrate with a C library, but if you know C and know how to make Ruby talk to C, then you should be able to get it). --f46d0435c0322cdea204c0e8f828 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, May 24, 2012 at 1:22 PM, Admin Tensor <lists@ruby-forum.com= > wrote:
George Dupre wrote in post #1062009:
>
> I will also look into this google_hash gem, it should also be useful.<= br>
Hi,

I think in Ruby speed is not the primary objective. =A0So if you need the code to run faster (by about the same order of magnitude), probably you
can transform the critical part into C.


+1

The Pickax= e has a good section about this (it's actually about how to integrate w= ith a C library, but if you know C and know how to make Ruby talk to C, the= n you should be able to get it).=A0
--f46d0435c0322cdea204c0e8f828--