mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Since the move to Chi the number of stack frames has proliferated somewhat catastrophically and we're up to 96 frames with multiple tests of the url outside of a trie which is inefficient. This PR reduces the number of stack frames by 6 through careful use of Route, moves Captcha into its own router so that it only fires on Captcha routes, similarly for avatars and repo-avatars. The robots.txt, / and apple-touch-icon.png are moved out of requiring Contexter. It moves access logger higher in the stack frame because there is no reason why it can't be higher. Extract from #15186 Contains #15292 |
4 years ago | |
---|---|---|
.. | ||
access_log.go | 4 years ago | |
api.go | 4 years ago | |
api_org.go | 8 years ago | |
api_test.go | 6 years ago | |
auth.go | 4 years ago | |
captcha.go | 4 years ago | |
context.go | 4 years ago | |
csrf.go | 4 years ago | |
form.go | 4 years ago | |
org.go | 4 years ago | |
pagination.go | 4 years ago | |
permission.go | 4 years ago | |
private.go | 4 years ago | |
repo.go | 4 years ago | |
response.go | 4 years ago | |
secret.go | 4 years ago | |
xsrf.go | 4 years ago | |
xsrf_test.go | 4 years ago |