How to Reduce Memory Usage by Tuning Gemfile
14-Dec-2018 2385
Rails is known for many things but memory effectiveness is not one of them. By default, it loads all gems, used and unused, which contributes to the overall memory footprint. Fortunately, we can easily eliminate this waste without touching the app.image_magick is a perfect example of this problem. If we manipulate images only in workers then there’s no reason to require it on web servers. Conversely, there’s no need to require web-related stuff on workers.Let’s start by understanding how Rails apps manage their dependencies.
How to Reduce Memory Usage by Tuning Gemfile #ruby #rubydeveloper #rubyonrails #Reduce #Memory #Usage #Tuning #Gemfile #gemfile https://rubyonrails.ba/link/how-to-reduce-memory-usage-by-tuning-gemfile