Controls garbage collection so that it only occurs once every 20 items
@see Listener#start
# File lib/nanoc/cli/commands/compile.rb, line 248 def start Nanoc::NotificationCenter.on(:compilation_started) do |rep| if @gc_count % 20 == 0 GC.enable GC.start GC.disable end @gc_count += 1 end end
@see Listener#stop
# File lib/nanoc/cli/commands/compile.rb, line 260 def stop super GC.enable end
Generated with the Darkfish Rdoc Generator 2.