YUKI Hiroshi
null+****@clear*****
Tue Oct 29 18:32:50 JST 2013
YUKI Hiroshi 2013-10-29 18:32:50 +0900 (Tue, 29 Oct 2013) New Revision: 78bde377eec1252e02ae9e3eaa65e27fd307d148 https://github.com/droonga/fluent-plugin-droonga/commit/78bde377eec1252e02ae9e3eaa65e27fd307d148 Message: Use File.open with a block, instead of each_line for loaded string Modified files: benchmark/watch/benchmark-notify.rb Modified: benchmark/watch/benchmark-notify.rb (+1 -1) =================================================================== --- benchmark/watch/benchmark-notify.rb 2013-10-28 20:39:14 +0900 (1e7c42c) +++ benchmark/watch/benchmark-notify.rb 2013-10-29 18:32:50 +0900 (ead9426) @@ -47,7 +47,7 @@ class NotifyBenchmark def setup ddl_path = File.expand_path(File.join(__FILE__, "..", "..", "..", "ddl", "watchdb.jsons")) - File.read(ddl_path).each_line do |part| + File.open(ddl_path, "r").each do |part| message = JSON.parse(part) @client.connection.send_receive(message) end -------------- next part -------------- HTML����������������������������...Download