From: Jarek Radosz Date: Tue, 9 May 2023 09:57:55 +0000 (+0200) Subject: DEV: Remove `RUBY_GLOBAL_METHOD_CACHE_SIZE` (#711) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7eaf87ad990a45c044aa50c09d816a39e2764990;p=discourse_docker.git DEV: Remove `RUBY_GLOBAL_METHOD_CACHE_SIZE` (#711) It doesn't do anything since ruby 3.0.0.preview1. It was removed in https://github.com/ruby/ruby/pull/2888 --- diff --git a/templates/web.template.yml b/templates/web.template.yml index 99965a8..7d716cc 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -3,9 +3,6 @@ env: RAILS_ENV: 'production' UNICORN_WORKERS: 3 UNICORN_SIDEKIQS: 1 - # this gives us very good cache coverage, 96 -> 99 - # in practice it is 1-2% perf improvement - RUBY_GLOBAL_METHOD_CACHE_SIZE: 131072 # stop heap doubling in size so aggressively, this conserves memory RUBY_GC_HEAP_GROWTH_MAX_SLOTS: 40000 RUBY_GC_HEAP_INIT_SLOTS: 400000