Skip to content

Commit

Permalink
Reduce mime-types gem memory usage
Browse files Browse the repository at this point in the history
This is based on mime-types/ruby-mime-types#96,
and some kind words from Alex Burkhart.  By using the columnar store
in the mime types gem we should be able to save 10-20MB of memory per
ruby process.
  • Loading branch information
Bestra committed Jan 25, 2017
1 parent e1c97f9 commit 86c17c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ gem 'kaminari'
gem 'lograge'
gem 'mail_safe', require: false
gem 'migration_data'
gem 'mime-types', '~> 2.99', require: 'mime/types/columnar' # memory savings, we can also updgrade to 3.x
gem 'mini_magick'
gem 'newrelic_rpm'
gem 'nokogiri'
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ DEPENDENCIES
lograge
mail_safe
migration_data
mime-types (~> 2.99)
mini_magick
newrelic_rpm
nokogiri
Expand Down

0 comments on commit 86c17c3

Please sign in to comment.