ruby-changes:42408
From: ko1 <ko1@a...>
Date: Mon, 4 Apr 2016 16:52:40 +0900 (JST)
Subject: [ruby-changes:42408] ko1:r54482 (trunk): * gc.c: change deafult value of
ko1 2016-04-04 17:49:17 +0900 (Mon, 04 Apr 2016) New Revision: 54482 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54482 Log: * gc.c: change deafult value of RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO 0.3 -> 0.2 RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO 0.8 -> 0.65 These values are same as Ruby 2.0.0. This change cause GC counts. However, generational GC reduced each (minor) GC time and increase memory locality. So that not so big impact on my benchmarking results. (surprizingly, this fix speed up programs on some cases) You can change these values by environment variables if you feel wrong. Modified files: trunk/ChangeLog trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 54481) +++ gc.c (revision 54482) @@ -118,13 +118,13 @@ rb_gc_guarded_ptr_val(volatile VALUE *pt https://github.com/ruby/ruby/blob/trunk/gc.c#L118 #endif #ifndef GC_HEAP_FREE_SLOTS_MIN_RATIO -#define GC_HEAP_FREE_SLOTS_MIN_RATIO 0.30 +#define GC_HEAP_FREE_SLOTS_MIN_RATIO 0.20 #endif #ifndef GC_HEAP_FREE_SLOTS_GOAL_RATIO #define GC_HEAP_FREE_SLOTS_GOAL_RATIO 0.40 #endif #ifndef GC_HEAP_FREE_SLOTS_MAX_RATIO -#define GC_HEAP_FREE_SLOTS_MAX_RATIO 0.80 +#define GC_HEAP_FREE_SLOTS_MAX_RATIO 0.65 #endif #ifndef GC_MALLOC_LIMIT_MIN Index: ChangeLog =================================================================== --- ChangeLog (revision 54481) +++ ChangeLog (revision 54482) @@ -1,3 +1,20 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Apr 4 17:43:45 2016 Koichi Sasada <ko1@a...> + + * gc.c: change deafult value of + RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO 0.3 -> 0.2 + RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO 0.8 -> 0.65 + + These values are same as Ruby 2.0.0. + + This change cause GC counts. + However, generational GC reduced each (minor) GC time and + increase memory locality. So that not so big impact on my + benchmarking results. + (surprizingly, this fix speed up programs on some cases) + + You can change these values by environment variables + if you feel wrong. + Mon Apr 4 17:36:52 2016 Koichi Sasada <ko1@a...> * gc.c (get_envparam_double): take an upper_bound. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/