diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-13 01:03:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-07-24 23:59:07 +0900 |
commit | b360588cd3cbac5fb4f004aa53a8fdc715906719 (patch) | |
tree | bcb42d5a7b1500df970cb5e146541841fb5e9e06 /test/json/test_json_fixtures.rb | |
parent | 971d24cd97ecf0fea542071af5ef3b134eeb4a6b (diff) |
Sort feature index arrays by the priority of file types [Bug #15856]
When looking for libraries to load with a feature name without
extension, `.rb` files are given priority. However, since the
feature index arrays were not in that order of priority, but in
the order in which they were loaded, a lower priority extension
library might be returned. In that case, the `.rb` file had to be
searched for again from the `$LOAD_PATH`, resulting in poor
performance.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4679
Diffstat (limited to 'test/json/test_json_fixtures.rb')
0 files changed, 0 insertions, 0 deletions