Commit 42b06da0 authored by Stan Hu's avatar Stan Hu

Merge branch '224506-reduce-highlight-limits' into 'master'

Make highlighting limits stricter

See merge request gitlab-org/gitlab!39934
parents 881661c2 40209866
---
title: Make highlighting limits stricter
merge_request: 39934
author:
type: performance
......@@ -3,8 +3,8 @@
module Gitlab
class Highlight
TIMEOUT_BACKGROUND = 30.seconds
TIMEOUT_FOREGROUND = 3.seconds
MAXIMUM_TEXT_HIGHLIGHT_SIZE = 1.megabyte
TIMEOUT_FOREGROUND = 1.5.seconds
MAXIMUM_TEXT_HIGHLIGHT_SIZE = 512.kilobytes
def self.highlight(blob_name, blob_content, language: nil, plain: false)
new(blob_name, blob_content, language: language)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment