Improve diff performance by eliminating redundant checks for text blobs
On a merge request with over 1000 changed files, there were redundant calls to blob_text_viewable?, which incurred about 7% of the time. Improves #14775
显示
- CHANGELOG 1 个添加, 0 个删除CHANGELOG
- app/helpers/blob_helper.rb 1 个添加, 1 个删除app/helpers/blob_helper.rb
- app/views/projects/blob/_actions.html.haml 2 个添加, 1 个删除app/views/projects/blob/_actions.html.haml
- app/views/projects/diffs/_file.html.haml 5 个添加, 4 个删除app/views/projects/diffs/_file.html.haml
- spec/helpers/blob_helper_spec.rb 18 个添加, 0 个删除spec/helpers/blob_helper_spec.rb
想要评论请 注册 或 登录