From 7cf4947792647fd985c38ebf37c27989fd5a1632 Mon Sep 17 00:00:00 2001 From: Oswaldo Ferreira Date: Sun, 16 Dec 2018 14:00:43 -0200 Subject: Cache diff highlight in discussions This commit handles note diffs caching, which considerably improves the performance on merge requests with lots of comments. Important to note that the caching approach taken here is different from `Gitlab::Diff::HighlightCache`. We do not reset the whole cache when a new push is sent or anything else. That's because discussions diffs are persisted and do not change. --- changelogs/unreleased/osw-cache-discussions-diff-highlighting.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 changelogs/unreleased/osw-cache-discussions-diff-highlighting.yml (limited to 'changelogs/unreleased') diff --git a/changelogs/unreleased/osw-cache-discussions-diff-highlighting.yml b/changelogs/unreleased/osw-cache-discussions-diff-highlighting.yml new file mode 100644 index 00000000000..7abc7d85794 --- /dev/null +++ b/changelogs/unreleased/osw-cache-discussions-diff-highlighting.yml @@ -0,0 +1,6 @@ +--- +title: Improve the loading time on merge request's discussion page by caching diff + highlight +merge_request: 23857 +author: +type: performance -- cgit v1.2.3