]> source.dussan.org Git - gitea.git/commit
Defer Last Commit Info (#16467)
authorzeripath <art27@cantab.net>
Fri, 8 Oct 2021 13:08:22 +0000 (14:08 +0100)
committerGitHub <noreply@github.com>
Fri, 8 Oct 2021 13:08:22 +0000 (15:08 +0200)
commit001dbf100de40f19c7ade5b8f013fbcccbe09ec3
tree0b1a57f8efbb2e941fe4c344005a70ec76ad57d1
parent88fa9f3fb168bc6c9c2bdc6341b83bc048b38846
Defer Last Commit Info (#16467)

One of the biggest reasons for slow repository browsing is that we wait
until last commit information has been generated for all files in the
repository.

This PR proposes deferring this generation to a new POST endpoint that
does the look up outside of the main page request.

Signed-off-by: Andrew Thornton <art27@cantab.net>
13 files changed:
modules/git/commit_info_gogit.go
modules/git/commit_info_nogogit.go
modules/git/last_commit_cache.go
modules/git/last_commit_cache_gogit.go
modules/git/last_commit_cache_nogogit.go
modules/git/log_name_status.go
modules/git/notes_gogit.go
modules/git/notes_nogogit.go
routers/web/repo/view.go
routers/web/web.go
templates/repo/view_list.tmpl
web_src/js/features/lastcommitloader.js [new file with mode: 0644]
web_src/js/index.js