bench-forgejo/routers/web/user
zeripath 196593e2e9
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>
2021-06-21 00:39:12 +02:00
..
setting Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
auth.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
auth_openid.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
avatar.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
home.go Improve performance of dashboard list orgs (#16099) 2021-06-14 20:18:09 +08:00
home_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
main_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
notification.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
oauth.go Add asymmetric JWT signing (#16010) 2021-06-17 23:56:46 +02:00
profile.go More efficiently parse shas for shaPostProcessor (#16101) 2021-06-21 00:39:12 +02:00
task.go Add Status Updates whilst Gitea migrations are occurring (#15076) 2021-06-16 18:02:24 -04:00