From: Masaya TARUI Date: 2016-04-13T10:30:55+09:00 Subject: [ruby-core:74914] Re: [Ruby trunk Bug#12274] accessing to instance variable should be fast. 2016-04-13 5:41 GMT+09:00 : > Issue #12274 has been updated by Benoit Daloze. >avoiding some ID2SYM/INT2FIX (but these two seem performed at compile time, so mostly irrelevant for the benchmark)? It is not for avoiding ID2SYM (In fact, it is calculated every time :-), it is for sharing. Please check the 0007 below $ ./ruby -v --disable-gems --dump=insns -e"@a=1;p @a" ruby 2.4.0dev (2016-04-12 trunk 54553) [x86_64-linux] == disasm: #@-e>============================================ 0000 trace 1 ( 1) 0002 putobject_OP_INT2FIX_O_1_C_ 0003 setinstancevariable :@a, 0006 putself 0007 getinstancevariable :@a, 0010 opt_send_without_block , 0013 leave $ ./ruby -v --disable-gems --dump=insns -e"@a=1;p @a" ruby 2.4.0dev (2016-04-12 fast-ivar-access 54553) [x86_64-linux] == disasm: #@-e>============================================ 0000 trace 1 ( 1) 0002 putobject_OP_INT2FIX_O_1_C_ 0003 setinstancevariable :@a, 0006 putself 0007 getinstancevariable :@a, 0010 opt_send_without_block , 0013 leave -- ������������(Masaya TARUI) No Tool,No Life. Unsubscribe: