29b6d465a7
MergeRequest#show performance improvements This is a first pass on improving the performance of the `MergeRequests#show` page. Notable changes: - The "Commits" tab is loaded lazily, so the initial page load should be much faster for MRs with many commits. - Relative timestamps via `timeago` are only initialized once per load instead of `O(n^2)`. This greatly improves frontend rendering times for a large number of commits. - Refactored `User.find_for_commit` to use a single ARel-generated SQL query instead of the old method which resulted in one query, and could result in up to three. See merge request !838 |
||
---|---|---|
.. | ||
application_controller.rb | ||
avatars_controller.rb | ||
blame_controller.rb | ||
blob_controller.rb | ||
branches_controller.rb | ||
commit_controller.rb | ||
commits_controller.rb | ||
compare_controller.rb | ||
deploy_keys_controller.rb | ||
forks_controller.rb | ||
graphs_controller.rb | ||
hooks_controller.rb | ||
imports_controller.rb | ||
issues_controller.rb | ||
labels_controller.rb | ||
merge_requests_controller.rb | ||
milestones_controller.rb | ||
network_controller.rb | ||
notes_controller.rb | ||
project_members_controller.rb | ||
protected_branches_controller.rb | ||
raw_controller.rb | ||
refs_controller.rb | ||
repositories_controller.rb | ||
services_controller.rb | ||
snippets_controller.rb | ||
tags_controller.rb | ||
tree_controller.rb | ||
uploads_controller.rb | ||
wikis_controller.rb |