From: Eric Wong Date: 2014-10-14T03:04:50+00:00 Subject: [ruby-core:65690] Re: [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string I've changed the way BOP_* flags are defined (they are now OM_* flags). Everything is in "opt_str_lit-v2" branch of git://bogomips.org/ruby.git Full diff of my work-in-progress here against trunk: http://80x24.org/spew/m/opt-str-lit-v2%40m.txt Interesting individual patches: * Auto enum generation for optimized methods: http://bogomips.org/ruby.git/patch?id=220be6849 * Optimized string allocations for gsub/sub/tr/tr_s(!) calls: http://bogomips.org/ruby.git/patch?id=bc28526fa I'll work some cleanups and adding more methods tomorrow: * Hash#{has_key,member,key,include}? * {Array,Hash,String}#delete * Array#include? * String#{squeeze,count,delete!} * Time#strftime ... There's a lot of potential, here :)