Ruby garbage collect

后端 未结 6 501
死守一世寂寞
死守一世寂寞 2020-12-29 03:34

When would you use this garbage collection method in your Ruby program(s)?

GC.start
6条回答
  •  [愿得一人]
    2020-12-29 04:00

    Usually discouraged unless you have some special need. Ex. sometimes during memory analysis it's useful to force a gc for better predictability.

提交回复
热议问题