Browse Source
More efficiently parse shas for shaPostProcessor (#16101)
More efficiently parse shas for shaPostProcessor (#16101)
* More efficiently parse shas for shaPostProcessor The shaPostProcessor currently repeatedly calls git rev-parse --verify on both backends which is fine if there is only one thing that matches a sha - however if there are multiple things then this becomes wildly inefficient. This PR provides functions for both backends which are much faster to use. Fix #16092 * Add ShaExistCache to RenderContext Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>master
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 122 additions and 10 deletions
-
24modules/git/repo_branch_gogit.go
-
18modules/git/repo_branch_nogogit.go
-
28modules/markup/html.go
-
46modules/markup/renderer.go
-
1routers/web/org/home.go
-
5routers/web/repo/issue.go
-
2routers/web/repo/milestone.go
-
2routers/web/repo/projects.go
-
2routers/web/repo/release.go
-
3routers/web/repo/view.go
-
1routers/web/user/profile.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue