Remove dependencies on Linguist
This saves about 128 MB of baseline RAM usage per Unicorn and Sidekiq process (!). Linguist wasn't detecting languages anymore from CE/EE since 9ae8b574. However, Linguist::BlobHelper was still being depended on by BlobLike and others. This removes the Linguist gem, given it isn't required anymore. EscapeUtils were pulled in as dependency, but given Banzai depends on it, it is now added explicitly. Previously, Linguist was used to detect the best ACE mode. Instead, we rely on ACE to guess the best mode based on the file extension.
Showing
... | ... | @@ -83,9 +83,6 @@ gem 'net-ldap' |
# Only used to compute wiki page slugs | ||
gem 'gitlab-gollum-lib', '~> 4.2', require: false | ||
# Language detection | ||
gem 'github-linguist', '~> 5.3.3', require: 'linguist' | ||
# API | ||
gem 'grape', '~> 1.1' | ||
gem 'grape-entity', '~> 0.7.1' | ||
... | ... | @@ -146,6 +143,7 @@ gem 'rouge', '~> 3.1' |
gem 'truncato', '~> 0.7.9' | ||
gem 'bootstrap_form', '~> 2.7.0' | ||
gem 'nokogiri', '~> 1.8.2' | ||
gem 'escape_utils', '~> 1.1' | ||
# Calendar rendering | ||
gem 'icalendar' | ||
... | ... |
lib/gitlab/blob_helper.rb
0 → 100644
lib/gitlab/language_data.rb
0 → 100644
Please register or sign in to comment