]> source.dussan.org Git - gitea.git/commit
Performance improvement for last commit cache and show-ref (#15455) (#15701)
authorzeripath <art27@cantab.net>
Mon, 3 May 2021 14:51:41 +0000 (15:51 +0100)
committerGitHub <noreply@github.com>
Mon, 3 May 2021 14:51:41 +0000 (16:51 +0200)
commit4fa2804238ef07f3972d926b0259ce5460398bce
tree8b132b7ee5c7cfa88cf865b2fea1bc26d9590198
parent3ce46a7fbda35ffb28f2ecb8733f4a0d255894be
Performance improvement for last commit cache and show-ref (#15455) (#15701)

Backport #15455

* Improve performance when there are multiple commits in the last commit cache

* read refs directly if we can

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/git/commit_info_nogogit.go
modules/git/last_commit_cache_nogogit.go
modules/git/repo_commit_nogogit.go