]> source.dussan.org Git - gitea.git/commit
Use cat-file --batch in GetLanguageStats (#14685)
authorzeripath <art27@cantab.net>
Wed, 17 Feb 2021 19:32:47 +0000 (19:32 +0000)
committerGitHub <noreply@github.com>
Wed, 17 Feb 2021 19:32:47 +0000 (14:32 -0500)
commit7ba158183a34d71b3989512c059a01d35c4c4673
treec9ae0a2d4e621c6322701b322b128dfb25fe4d69
parentfe628d8406632e6f5b3969ac86d817a035d4bae9
Use cat-file --batch in GetLanguageStats (#14685)

* Use cat-file --batch in GetLanguageStats

This PR moves to using a single cat-file --batch in GetLanguageStats
significantly reducing the number of processes spawned during language stat
processing.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* placate lint

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update modules/git/repo_language_stats_nogogit.go

Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
modules/git/repo_language_stats_nogogit.go