[ruby-cvs:50701] tarui:r43558 (trunk): * gc.c (gc_before_sweep): Change algorithm of malloc_limit to

tarui at ruby-lang.org tarui at ruby-lang.org
Wed Nov 6 21:36:35 JST 2013


tarui	2013-11-06 21:36:34 +0900 (Wed, 06 Nov 2013)

  New Revision: 43558

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43558

  Log:
    * gc.c (gc_before_sweep): Change algorithm of malloc_limit to
      conservative for closing to memory consumption of ruby 2.0.
    
    * gc.c (GC_MALLOC_LIMIT, GC_MALLOC_LIMIT_GROWTH_FACTOR):
      Adjust parameters for new algorithm.
    
    Example: make gcbench-rdoc on a pc
                                  time       maxrss
    2.0.0p343             285.27     281853952
    trunk before patch    207.19     690405376
    trunk after patch     211.59     312500224

  Modified files:
    trunk/ChangeLog
    trunk/gc.c


More information about the ruby-cvs mailing list