1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y: optimize 'for' statement when one variable given.

* benchmark/bm_loop_for.rb: added.
* benchmark/bm_loop_times.rb: modified.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2008-10-10 19:19:36 +00:00
parent 254937c873
commit 3f710785f0
4 changed files with 29 additions and 7 deletions

3
benchmark/bm_loop_for.rb Normal file
View file

@ -0,0 +1,3 @@
for i in 1..30_000_000
#
end