diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-10 21:22:54 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-10 21:22:54 +0000 |
commit | 0a40bcb20b27058f760ce855fc1860a540c49f43 (patch) | |
tree | 415dbfc1f9eb4fa0fe5469c894ea67c79342a6bf /numeric.c | |
parent | ad45aea45631a451ae0b4b4a5592468d0c4617c0 (diff) | |
download | ruby-0a40bcb20b27058f760ce855fc1860a540c49f43.tar.gz |
* vm_eval.c, internal.h (rb_yield_1): added for performance which
doesn't check Qundef.
* numeric.c (int_dotimes): use rb_yield_1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3949,7 +3949,7 @@ int_dotimes(VALUE num) end = FIX2LONG(num); for (i=0; i<end; i++) { - rb_yield(LONG2FIX(i)); + rb_yield_1(LONG2FIX(i)); } } else { |