]> source.dussan.org Git - gitea.git/commit
perf: sent `data-path` once for each file (#17657)
authorGusted <williamzijl7@hotmail.com>
Fri, 19 Nov 2021 02:28:27 +0000 (02:28 +0000)
committerGitHub <noreply@github.com>
Fri, 19 Nov 2021 02:28:27 +0000 (10:28 +0800)
commit96ec656cf152a3663476bd26a410a13b993e6bac
tree9f32f9e436963fb4ece7f908ab472b420a873fb5
parenta85e75b2b19b1defa90364e8131b373489025ee6
perf: sent `data-path` once for each file (#17657)

- Don't sent it with each line, instead send it at the top-element for each file.
- Related:
https://github.com/go-gitea/gitea/pull/17618#issuecomment-968192761

2.5K Additions:
No-Patch:
Unified: 2.14 MB (2.14 MB size)
Split: 2.59 MB (2.59 MB size)

Patch:
Unified: 2.10 MB (2.10 MB size) (-1.8%)
Split: 2.55 MB (2.55 MB size) (-1.5%)
templates/repo/diff/box.tmpl
templates/repo/diff/section_split.tmpl
templates/repo/diff/section_unified.tmpl
web_src/js/features/repo-diff.js
web_src/js/features/repo-issue.js