From eaa9ca76537fbf0a9b69353b00832b65e6ca828c Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 23 Jan 2010 14:16:04 +0000 Subject: [PATCH] * lib/rdoc/generator/html.rb (RDoc::Generator::HTML#gen_into): make the rdoc(generating html) run faster and use less memory. patch by Tetsu Soh [ruby-core:27656] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rdoc/generator/html.rb | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index db62391a05..e92f608bc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Jan 23 23:12:56 2010 NARUSE, Yui + + * lib/rdoc/generator/html.rb (RDoc::Generator::HTML#gen_into): + make the rdoc(generating html) run faster and use less memory. + patch by Tetsu Soh [ruby-core:27656] + Sat Jan 23 19:54:48 2010 Masaki Suketa * ext/win32ole/win32ole.c: add WIN32OLE.ole_initialize, diff --git a/lib/rdoc/generator/html.rb b/lib/rdoc/generator/html.rb index 60e0c175fe..3bce7b21aa 100644 --- a/lib/rdoc/generator/html.rb +++ b/lib/rdoc/generator/html.rb @@ -231,6 +231,10 @@ class RDoc::Generator::HTML open op_file, 'w' do |io| item.write_on io, file_list, class_list, method_list end + + file_list.clear + class_list.clear + method_list.clear end end