Improve performance loading last commit data in repository view

Loading the commit data for each file is done after loading the list of files in the directory to improve page load time, however the last commit data (commit message, timestamp) is important information and can be very slow to load.

We should investigate why it is slow because it is a very visible problem on projects like gitlab-ce (it took 6 seconds to load today) and customers have reported problems for their own large projects.

Loading https://gitlab.com/gitlab-org/gitlab-ce
Screen_Shot_2019-03-20_at_10.16.23_AM

Proposal

Improve the performance of loading the last commit data

Links / references

Edited by James Ramsay (ex-GitLab)