From: Eric Wong Date: 2017-03-27T19:00:54+00:00 Subject: [ruby-core:80410] Re: [Ruby trunk Feature#13355] [PATCH] compile.c: optimize literal String range in case/when dispatch normalperson@yhbt.net wrote: > https://bugs.ruby-lang.org/issues/13355 > > This is similar in spirit to opt_case_dispatch as the literal > Range here is guaranteed to be immutable when used for > checkmatch. Along with the current behavior of using putobject instead of putstring for literal strings, when there are non-literals. Anyways, this only puts extra code into compile.c (not insns.def), so it has less negative impact at runtime. I will commit this in a few days if no response. Unsubscribe: