I agree that something in this direction should be done.
Garbage collection details can affect performance a lot.

Exposing one or two variables isn't difficult. I'm wondering
why this hasn't been done yet. One guess is that it would
not at all be portable to other systems (JRuby,...).

Regards,    Martin.

At 05:46 09/01/25, you wrote:
>Feature #1047: request: getters, setters for the GC
>http://redmine.ruby-lang.org/issues/show/1047
>
>Author: Roger Pack
>Status: Open, Priority: Normal
>
>It has been shown that increasing the malloc_limit can have a dramatic 
>effect in speeding up certain programs.
>ex:
>
>Ruby 1.9 normal: 
>real-world/bm_hilbert_matrix.rb, 
>4.0054624080658,4.09904861450195,4.052255511283875,0.046793103218079,50 
>
>ruby 1.9 trunk with increased malloc_limit [1] 
>real-world/bm_hilbert_matrix.rb, 
>2.87246918678284,2.8920271396637,2.882248163223267,0.009778976440430,50 
>
>So I would like to request getters and setters for malloc_limit, 
>HEAP_MIN_SLOTS, etc, if that's possible.
>Thanks much!
>-=r
>
>[1] 
>http://groups.google.com/group/ruby-benchmark-suite/browse_thread/thread/f56b4335cfd3ec57
>
>
>----------------------------------------
>http://redmine.ruby-lang.org


#-#-#  Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-#  http://www.sw.it.aoyama.ac.jp       mailto:duerst / it.aoyama.ac.jp