[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65601] Re: [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string

From: Eric Wong <normalperson@...>
Date: 2014-10-10 23:13:17 UTC
List: ruby-core #65601
Eric Wong <[email protected]> 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)

In This Thread

Prev Next