gitlab-org--gitlab-foss/lib/banzai
Stan Hu be495c6a80 Fix slow Markdown rendering
The sanitize transformers were being duplicated each time the Markdown
renderer was called, leading to expontential growth in rendering times.

The problem was that although HTML::Pipeline::SanitizationFilter.WHITELIST
is a frozen hash, the `:transformers` array can be modified. We need
to do deep copy of this to avoid adding duplicates.

Closes #49409
2018-07-24 13:00:49 -07:00
..
filter Fix slow Markdown rendering 2018-07-24 13:00:49 -07:00
pipeline Extract EE-specific lines from Banzai pipelines 2018-07-13 12:37:46 +01:00
reference_parser Eager load project routes for issue references 2018-05-28 13:38:20 +02:00
renderer make call to 'html_escape' unambiguous 2018-04-17 11:39:11 +02:00
color_parser.rb Use %r around multi-line regular expressions 2018-02-02 15:13:32 -06:00
commit_renderer.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
cross_project_reference.rb Better group support notes-related code 2018-04-05 13:29:57 +02:00
filter.rb
filter_array.rb
issuable_extractor.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
object_renderer.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
pipeline.rb
querying.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
redactor.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
reference_extractor.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
reference_parser.rb
render_context.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
renderer.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
request_store_reference_cache.rb Resolve "DashboardController#activity.json is slow due to SQL" 2017-11-06 16:52:56 +00:00