forkjo/modules
zeripath 47fd156936
Use route rather than use thus reducing the number of stack frames ()
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 
Contains 
2021-05-04 22:48:31 +01:00
..
analyze Speed up enry.IsVendor () 2021-04-01 19:41:09 +02:00
auth OAuth2 auto-register () 2021-04-14 14:02:12 +02:00
avatar Avatars and Repo avatars support storing in minio () 2020-10-14 21:07:51 +08:00
base Add some Unit-Tests () 2021-01-28 19:08:11 +01:00
cache [Vendor] Update go-redis to v8.5.0 () 2021-02-10 21:28:32 +00:00
charset Refactor renders () 2021-04-19 18:25:08 -04:00
context Use route rather than use thus reducing the number of stack frames () 2021-05-04 22:48:31 +01:00
convert Add Location, Website and Biography to API () 2021-05-01 10:05:55 +01:00
cron add cron job to delete old actions from database () 2021-05-01 14:17:02 +02:00
csv Refactor renders () 2021-04-19 18:25:08 -04:00
doctor Delete references if repository gets deleted () 2021-04-30 21:10:39 +02:00
emoji Fix several render issues () 2021-03-16 00:20:05 +01:00
eventsource Migrate to use jsoniter instead of encoding/json () 2021-03-01 22:08:10 +01:00
generate Add gitea-vet () 2020-04-05 07:20:50 +01:00
git Performance improvement for last commit cache and show-ref () 2021-05-02 03:16:08 +02:00
gitgraph Fix bug on commit graph () 2021-04-17 10:27:25 +01:00
graceful Fix regression from - use debug SVC handler only on interactive sessions () 2021-03-31 22:48:48 +03:00
hcaptcha hCaptcha Support () 2020-10-02 23:37:53 -04:00
highlight Use existing analyzer module for language detection for highlighting () 2020-11-13 16:13:41 -05:00
httpcache Add ETag header () 2021-04-12 10:49:26 -04:00
httplib fix webhook timeout bug () 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 ) () 2021-04-22 17:35:29 +02:00
lfs Fix lfs management find () 2021-04-21 18:31:59 +02:00
log Migrate to use jsoniter instead of encoding/json () 2021-03-01 22:08:10 +01:00
markup Refactor renders () 2021-04-19 18:25:08 -04:00
matchlist Add Allow-/Block-List for Migrate & Mirrors () 2020-11-28 19:37:58 -05:00
metrics Prometheus endpoint () 2018-11-04 22:20:00 -05:00
migrations migration: github: if rate limit is not enabled, ignore it () 2021-04-15 15:34:22 +02:00
nosql Fix setting redis db path () 2021-05-03 13:24:24 -04:00
notification Refactor renders () 2021-04-19 18:25:08 -04:00
options Add StatDir and replace com.StatDir () 2020-12-22 07:40:57 +08:00
password Check passwords against HaveIBeenPwned () 2020-09-08 17:06:39 -05:00
pprof Add golangci () 2019-06-12 15:41:28 -04:00
private Migrate to use jsoniter instead of encoding/json () 2021-03-01 22:08:10 +01:00
process Code Formats, Nits & Unused Func/Var deletions () 2021-04-09 09:40:34 +02:00
public add /assets as root dir of public files () 2021-04-28 12:35:06 +00:00
queue Prevent race in TestChannelQueue_Batch () 2021-05-03 17:16:59 +01:00
recaptcha Migrate to use jsoniter instead of encoding/json () 2021-03-01 22:08:10 +01:00
references Code Formats, Nits & Unused Func/Var deletions () 2021-04-09 09:40:34 +02:00
repofiles Code Formats, Nits & Unused Func/Var deletions () 2021-04-09 09:40:34 +02:00
repository Fix potential copy lfs records failure when fork a repository () 2021-04-14 22:15:28 +01:00
secret Attachments: Add extension support, allow all types for releases () 2020-10-05 01:49:33 -04:00
session Migrate to use jsoniter instead of encoding/json () 2021-03-01 22:08:10 +01:00
setting add /assets as root dir of public files () 2021-04-28 12:35:06 +00:00
ssh Make internal SSH server host key path configurable () 2021-03-08 03:43:59 +01:00
storage Code Formats, Nits & Unused Func/Var deletions () 2021-04-09 09:40:34 +02:00
structs Addition to (Add Location, Website and Description to API ) () 2021-05-02 21:03:15 +02:00
svg Fix filepath basename on Windows for SVG bindata () 2020-07-13 21:16:40 +01:00
sync Fix missing unlock in uniquequeue () 2020-01-15 23:58:33 +02:00
task Migrate to use jsoniter instead of encoding/json () 2021-03-01 22:08:10 +01:00
templates add /assets as root dir of public files () 2021-04-28 12:35:06 +00:00
test Move middlewares to web/middleware () 2021-01-30 10:55:53 +02:00
timeutil Fix display since time round () 2021-01-28 13:29:22 +01:00
translation Use index of the supported tags to choose user lang () 2021-04-14 19:52:01 +01:00
upload Update golangci-lint to version 1.31.0 () 2020-10-11 21:27:20 +01:00
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea () 2020-12-27 11:34:19 +08:00
user Add gitea-vet () 2020-04-05 07:20:50 +01:00
util Add LFS Migration and Mirror () 2021-04-08 18:25:57 -04:00
validation Move macaron to chi () 2021-01-26 16:36:53 +01:00
web Use index of the supported tags to choose user lang () 2021-04-14 19:52:01 +01:00