uploadcare / uploadcare-ruby

Ruby API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
https://uploadcare.com
MIT License
39 stars 28 forks source link

REQ: Memory Reduction - replace mime-types with mini_mime #61

Closed drush closed 2 years ago

drush commented 5 years ago

BACKGROUND: Mime-types is a large, memory intensive gem. Example of allocated memory via derailed bundle:objects:

allocated memory by gem
-----------------------------------
  30106245  activesupport-5.2.1
   6303003  mime-types-3.2.2
   1771271  addressable-2.6.0
   1748528  activerecord-5.2.1
  ...

The equivalent functionality can be accomplished without incurring so much memory overhead using mini_mime gem.

See this issue on mini_mime for details on how to reduce. Major projects are already adopting. https://github.com/discourse/mini_mime/issues/6

dmitry-mukhin commented 5 years ago

thanks for the suggestion