No commit activity in last 3 years
No release in over 3 years
Call malloc_trim(0) on GC Impact: - 99th percentile performance is slightly impacted. - CPU is very slightly higher Inspired by Philipp Tessenow's malloc_trim gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.0
 Project Readme

RailsMallocTrim

Drop-in library for RAILS app to save some memory.

Gem will call malloc_trim after every GC run. This gem solves the problem with the minimum possible effort. It will check if malloc_trim is available and then enables trimming along with loading your Rails app

Installation

Just put it in your Gemfile:

  gem 'rails_malloc_trim', '~> 0.2'

Done!

Impact

  • 99th percentile performance is slightly impacted
  • CPU is very slightly higher

License

The gem is available as open source under the terms of the MIT License.

Based on idea from