Kouhei Sutou
null+****@clear*****
Mon Mar 17 14:23:46 JST 2014
Kouhei Sutou 2014-03-17 14:23:46 +0900 (Mon, 17 Mar 2014) New Revision: 8e641ea4cfb395e0e3f1c05bed6a894946e201e6 https://github.com/droonga/grn2drn/commit/8e641ea4cfb395e0e3f1c05bed6a894946e201e6 Message: Don't read all data at the first We should parse input as stream to support large data. Modified files: bin/grn2drn Modified: bin/grn2drn (+2 -3) =================================================================== --- bin/grn2drn 2014-03-17 14:22:44 +0900 (bbf62e7) +++ bin/grn2drn 2014-03-17 14:23:46 +0900 (dc9f647) @@ -69,11 +69,10 @@ converter = Grn2Drn::CommandConverter.new(convert_options) source_file = args[0] result_file = args[1] -input = nil if source_file.nil? - input = STDIN.read + input = STDIN else - input = File.read(source_file) + input = File.open(source_file) end if result_file.nil? -------------- next part -------------- HTML����������������������������...Download