diff options
| author | shirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-22 01:11:40 +0000 |
|---|---|---|
| committer | shirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-22 01:11:40 +0000 |
| commit | 2a119042145973fd66504c70ba0cd86d2571d014 (patch) | |
| tree | e14b496556157be713ed813bc582230c523dc712 /spec/ruby/core/array/pack/shared | |
| parent | c61adf51a3724ed096a3fea81c6f1e28ee99c300 (diff) | |
dir.c: performance fix with braces
Braces were expended before ruby_glob0(). This caused to call
replace_real_basename() for same plain patterns repeatedly.
Move blace expansion into glob_helper() in ruby_glob0() to reduce
replace_real_basename() call.
This fix changes the order of glob results.
[Feature #13167] [Fix GH-1864]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/core/array/pack/shared')
0 files changed, 0 insertions, 0 deletions
