0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-28 08:14:39 +01:00
gitea/modules
zeripath 47fd156936
Use route rather than use thus reducing the number of stack frames (#15301)
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
2021-05-04 22:48:31 +01:00
..
analyze
auth
avatar
base
cache
charset Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
context Use route rather than use thus reducing the number of stack frames (#15301) 2021-05-04 22:48:31 +01:00
convert Add Location, Website and Biography to API (#15675) 2021-05-01 10:05:55 +01:00
cron add cron job to delete old actions from database (#15688) 2021-05-01 14:17:02 +02:00
csv Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
doctor Delete references if repository gets deleted (#15681) 2021-04-30 21:10:39 +02:00
emoji
eventsource
generate
git Performance improvement for last commit cache and show-ref (#15455) 2021-05-02 03:16:08 +02:00
gitgraph
graceful
hcaptcha
highlight
httpcache
httplib fix webhook timeout bug (#15613) 2021-04-25 21:48:12 +03:00
indexer If the default branch is not present do not report error on stats indexing (follow-up of #15546) (#15583) 2021-04-22 17:35:29 +02:00
lfs Fix lfs management find (#15537) 2021-04-21 18:31:59 +02:00
log
markup Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
matchlist
metrics
migrations
nosql Fix setting redis db path (#15698) 2021-05-03 13:24:24 -04:00
notification Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
options
password
pprof
private
process
public add /assets as root dir of public files (#15219) 2021-04-28 12:35:06 +00:00
queue Prevent race in TestChannelQueue_Batch (#15703) 2021-05-03 17:16:59 +01:00
recaptcha
references
repofiles
repository
secret
session
setting add /assets as root dir of public files (#15219) 2021-04-28 12:35:06 +00:00
ssh
storage
structs Addition to (Add Location, Website and Description to API #15675) (#15690) 2021-05-02 21:03:15 +02:00
svg
sync
task
templates add /assets as root dir of public files (#15219) 2021-04-28 12:35:06 +00:00
test
timeutil
translation
upload
uri
user
util
validation
web