Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #4663
| From | Martin Hansen <mail@maasha.dk> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: RubyInline trouble |
| Date | 2011-05-17 04:16 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <937cc4915ef2f73508e7f4638447a02e@ruby-forum.com> (permalink) |
| References | <c905efc4d373fe6f8d5502a268752dfb@ruby-forum.com> |
This seem to work: http://pastie.org/1915197 I hope, I build the code the correct way? Also, the speed increase is roughly 1-fold. I am a bit puzzled that Ruby on its own is a tad slow on array accession and bit wise operations. But when is a speed increase big enough to justify moving to Inline C? Btw, is there a method to pretty print the resulting C code? That would be nice for inspection. Morever, I think RubyInline is a bit under documented. The Perl Inline module comes with a very nice cookbook: http://search.cpan.org/~sisyphus/Inline-0.48/C/C.pod http://search.cpan.org/~sisyphus/Inline-0.48/C/C-Cookbook.pod This RubyInline tool is really cool I must say! Cheers, Martin -- Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Find similar | Unroll thread
RubyInline trouble Martin Hansen <mail@maasha.dk> - 2011-05-16 09:53 -0500 Re: RubyInline trouble Jeff Dallien <jeff@dallien.net> - 2011-05-16 15:08 -0500 Re: RubyInline trouble Ryan Davis <ryand-ruby@zenspider.com> - 2011-05-16 17:28 -0500 Re: RubyInline trouble Martin Hansen <mail@maasha.dk> - 2011-05-17 04:16 -0500
csiph-web