src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.9k stars 540 forks source link

go-git http server cpu usage is too high #1194

Closed Tachone closed 5 years ago

Tachone commented 5 years ago

Our git http server switch from libgit2/git2go to src-d/go-git, improved maintainability. but cpu usage almost doubled(200%->400%).

We got a performance gragh by using pprof, mallocgc and hex.Decode are the tops, would you give me some suggestions? Or is there a plan for performance optimization? image