{"id":19631660,"url":"https://github.com/noma4i/rails_malloc_trim","last_synced_at":"2025-04-28T06:33:25.568Z","repository":{"id":56890661,"uuid":"193634563","full_name":"noma4i/rails_malloc_trim","owner":"noma4i","description":"Ruby GC malloc_trim for Rails","archived":false,"fork":false,"pushed_at":"2019-11-09T12:51:45.000Z","size":13,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-22T08:13:36.570Z","etag":null,"topics":["gc","malloc","rails","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noma4i.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-25T04:28:50.000Z","updated_at":"2022-04-01T21:38:39.000Z","dependencies_parsed_at":"2022-08-20T16:00:52.298Z","dependency_job_id":null,"html_url":"https://github.com/noma4i/rails_malloc_trim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Frails_malloc_trim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Frails_malloc_trim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Frails_malloc_trim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Frails_malloc_trim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noma4i","download_url":"https://codeload.github.com/noma4i/rails_malloc_trim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251266068,"owners_count":21561775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gc","malloc","rails","ruby"],"created_at":"2024-11-11T12:10:44.272Z","updated_at":"2025-04-28T06:33:25.248Z","avatar_url":"https://github.com/noma4i.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RailsMallocTrim\n\nDrop-in library for RAILS app to save some memory.\n\nGem will call `malloc_trim` after every GC run. This gem solves the problem with the minimum possible effort.\nIt will check if `malloc_trim` is available and then enables trimming along with loading your Rails app\n\n## Installation\n\nJust put it in your Gemfile:\n\n```ruby\n  gem 'rails_malloc_trim', '~\u003e 0.2'\n```\n\nDone!\n\n## Impact\n\n  - 99th percentile performance is slightly impacted\n  - CPU is very slightly higher\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n### Based on idea from\n\n* https://www.joyfulbikeshedding.com/blog/2019-03-14-what-causes-ruby-memory-bloat.html\n* https://github.com/tessi/malloc_trim\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoma4i%2Frails_malloc_trim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoma4i%2Frails_malloc_trim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoma4i%2Frails_malloc_trim/lists"}