[#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:65690] Re: [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string

From: Eric Wong <normalperson@...>
Date: 2014-10-14 03:04:50 UTC
List: ruby-core #65690
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 :)

In This Thread

Prev Next