Comment maybe just turn it off (Score 1) 43
If running cgit is too expensive, disable it (or limit it to very shallow views). Developers can clone repositories and run cgit locally. Bots can clone repositories too if their owners think it's so important.