Go-git 4.12 (https://github.com/src-d/go-git/releases/tag/v4.12.0) was released now so Gitea should pick it up for the performance improvements.