From: Yukihiro Matsumoto Date: 2011-06-07T22:46:29+09:00 Subject: [ruby-core:36818] Re: [Ruby 1.9 - Feature #4845] Provide Class#cb_object_instantiated_from_literal(object) Hi, In message "Re: [ruby-core:36809] [Ruby 1.9 - Feature #4845] Provide Class#cb_object_instantiated_from_literal(object)" on Tue, 7 Jun 2011 18:42:34 +0900, Lazaridis Ilias writes: |Nobuyoshi Nakada wrote: |> > * minimal overhead if not used (C-level if *ptr available, call) |> |> Not true. | |I admit I don't know your current implementation. |Can you please point me to the relevant source code? Method invocation is far slower than C function call. And most of the time was spent in method look-up. So checking existence of cb_object_instantiated_from_literal (that requires method look-up) would have huge performance impact. matz.