From: Joseph McDonald Date: 2002-09-20T09:54:56+09:00 Subject: ruby-inline and alias_method Hi, I have be experimenting with Ruby-Inline, and I have to say it is super cool. I have run into a problem that is either a problem in my code (likely), or a problem with inline, or perhaps a problem with ruby. The problem is that when I access an inlined method that has been aliased, it slows down 100 fold. below is an example that just sums the elements of an array. I also run it without using the alias and it runs fast (about 9 times as fast as ruby native). I also include at the bottom the code that Ruby-Inline generated. #!/usr/local/bin/ruby require 'RubyInline-1.0.5/inline' class Array include Inline def sum(*args) inline args, <<-'END' int len, result = 0; int j; VALUE *arr; arr = RARRAY(self)->ptr; len = RARRAY(self)->len; for(j=0; jptr; len = RARRAY(self)->len; for(j=0; j