Link Details

Link 12237 thumbnail
User 107114 avatar

By daniel
via rubyinside.com
Published: Jan 29 2007 / 06:20

After writing a basic routine to print all prime numbers between 1 and 10,000 in Ruby, Pat Eyler found it took almost 3 seconds to complete, and seeked out a way to make it faster. Enter RubyInline (covered previous at RubyInside).. With RubyInline we added a basic C function into the Ruby mix and knocked down the time required to 0.3 seconds.
  • 13
  • 0
  • 1097
  • 260

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.