From: "Ondřej Bílka" Date: 2010-10-14T16:24:18+09:00 Subject: [ruby-core:32783] replacing rb_intern Hello I have idea to speed up ruby a bit Typical use of rb_intern looks like this if (!rb_respond_to(str2, rb_intern("to_str"))) { return Qfalse; which could be replaced by if (!rb_respond_to(str2, id_to_str)) { return Qfalse; I propose to use script which replaces all occurences of rb_intern("foo") by id_foo, defines id_foo and initializes it at Init_ function. Any comments? -- Budget cuts