gitlab-org--gitlab-foss/changelogs/unreleased/62116-performance-issue-502-errors-on-rendering-of-issues-with-heavy-markdown-contents.yml
Sean McGivern f9f9147290 Fix page_description helper performance
This helper is used for extracting part of the issue / MR / whatever
description for use in the description meta tag:

1. To do that, we look at the source of the Markdown description.
2. We then strip out all HTML tags.
3. And then take the first 30 words.

Doing that can be really slow - especially as Markdown is supposed to be
treated as plain text. There are many better ways to do this, but the
immediate performance fix is to swap steps 2 and 3. This does mean that
the description may be less than 30 words (or even empty), but it is
much faster when the description is very long.
2019-05-22 16:56:12 +01:00

6 lines
148 B
YAML

---
title: Fix performance issue with large Markdown content in issue or merge request
description
merge_request: 28597
author:
type: performance