diff options
| author | Christopher Aue <[email protected]> | 2017-08-26 15:42:52 +0200 |
|---|---|---|
| committer | Christopher Aue <[email protected]> | 2017-08-26 15:57:25 +0200 |
| commit | c956e17c02d890ed96f640504f57eae0495f1f75 (patch) | |
| tree | 1874af71ff598308afbd8f1110bd5ebdcf6f445c /include | |
| parent | 6c9013e22b56f8a6b9bbd8ba2defa9db6a768401 (diff) | |
| download | mruby-c956e17c02d890ed96f640504f57eae0495f1f75.tar.gz mruby-c956e17c02d890ed96f640504f57eae0495f1f75.zip | |
Replaced Array#each with while loop for performance reasons
Example benchmark:
$ time build/bench/bin/mruby -e "Array.new(2_000_000){ |i| i }.index{ |i| i == 1_999_999 }"
Before:
real 0m0.934s
user 0m0.922s
sys 0m0.003s
After:
real 0m0.590s
user 0m0.583s
sys 0m0.007s
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
