]> source.dussan.org Git - gitea.git/commit
Just use a slice when rendering file (#16774)
authorzeripath <art27@cantab.net>
Mon, 23 Aug 2021 21:23:39 +0000 (22:23 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Aug 2021 21:23:39 +0000 (22:23 +0100)
commitf31e7a67cfc9662af2ae2dab3f4687457545f60c
tree532a5e37ba751e710e1ee6ce271e2ac49026c6e7
parent73defbbd1c070930563f17daa9e540c44a127928
Just use a slice when rendering file (#16774)

Highlight currently uses a map which is memory inefficient. Switch to use a slice instead.

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/highlight/highlight.go
modules/highlight/highlight_test.go
templates/repo/view_file.tmpl