[Groonga-commit] droonga/fluent-plugin-droonga at 0b4aaf5 [master] Benchmark: use String#each_line to process jsons file

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Oct 28 18:59:10 JST 2013


YUKI Hiroshi	2013-10-28 18:59:10 +0900 (Mon, 28 Oct 2013)

  New Revision: 0b4aaf519d4aa3d8a4195ecdefa50368236a6701
  https://github.com/droonga/fluent-plugin-droonga/commit/0b4aaf519d4aa3d8a4195ecdefa50368236a6701

  Message:
    Benchmark: use String#each_line to process jsons file

  Modified files:
    benchmark/watch/benchmark-notify.rb

  Modified: benchmark/watch/benchmark-notify.rb (+1 -2)
===================================================================
--- benchmark/watch/benchmark-notify.rb    2013-10-28 18:46:33 +0900 (6688754)
+++ benchmark/watch/benchmark-notify.rb    2013-10-28 18:59:10 +0900 (217d40b)
@@ -47,8 +47,7 @@ class NotifyBenchmark
 
   def setup
     ddl_path = File.expand_path(File.join(__FILE__, "..", "..", "..", "ddl", "watchdb.jsons"))
-    ddl_jsons = File.read(ddl_path)
-    ddl_jsons.split("\n").each do |part|
+    File.read(ddl_path).each_line do |part|
       message = JSON.parse(part)
       @client.connection.send_receive(message)
     end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index