[ruby-core:75862] Re: [Ruby trunk Feature#12463] ruby lacks plus-plus

From: Eric Wong <normalperson@...>
Date: 2016-06-06 13:44:38 UTC
List: ruby-core #75862
duerst@it.aoyama.ac.jp wrote:
> This looks like an interesting improvement. But in some way, a
> ```
> a += 1
> ```
> in a Ruby program may be a code smell (specifically, it smells of C and similar languages).

Agreed, I'm not sure how often I see this to be a useful optimization.

> Also for a nontrivial benchmark, optcarrot speeds up from 31.14 fps to
> 31.98 fps (102.6%).  This is not that huge gain (disappointed), but it
> does speeds up more or less.

Yes, that is small.  What is optcarrot?  I can't find it in trunk.

Also, what is performance impact for other benchmarks?

Do you notice a performance change (either micro or other
benchmarks) removing "inline"?

Mainly, I am uncomfortable about making vm_exec loop bigger and
blowing away icache.

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread