From: Eric Wong Date: 2014-10-10T23:13:17+00:00 Subject: [ruby-core:65601] Re: [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string Eric Wong wrote: > http://80x24.org/spew/m/opt-str-lit-v1%40m.txt Benchmark suite so far: http://80x24.org/spew/m/opt_str_lit-v1-bench%40whir.txt Note: this increases iseq size and can slow some performance on some benchmarks due to the removal of the opt_{aset,aref}_with VM instructions. Since opt_str_lit is generic, many similar optimizations may be implemented with less effort. (working on getting BOP_ done more generically for sub/gsub/tr-type methods)