From: Chuck Remes Date: 2011-04-19T01:10:01+09:00 Subject: Re: Need for speed -> a C extension? On Apr 18, 2011, at 10:15 AM, Martin Hansen wrote: > Hello all, > > > The below code is too slow for practical use. I need it to run at least > 20 times faster. Perhaps that is possible with some C code? I have no > experience with writing Ruby extensions. What are the pitfalls? Which > part of the code should be ported? Any pointers to get me started? I pasted the code into a local file and ran it. It completed instantly. It would be super helpful if you provided *all* of the code to make this run and do some useful work. By doing so, people who want to help you can run it through a profiler and identify hot spots. cr