[Groonga-commit] droonga/fluent-plugin-droonga at 8a5a6bf [master] Benchmark: use Droonga:*Watcher directly

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Oct 25 18:52:49 JST 2013


YUKI Hiroshi	2013-10-25 18:52:49 +0900 (Fri, 25 Oct 2013)

  New Revision: 8a5a6bff65f587d8f13d8d17b0597d44e81c6991
  https://github.com/droonga/fluent-plugin-droonga/commit/8a5a6bff65f587d8f13d8d17b0597d44e81c6991

  Message:
    Benchmark: use Droonga:*Watcher directly

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

  Modified: benchmark/watch/benchmark-scan.rb (+3 -4)
===================================================================
--- benchmark/watch/benchmark-scan.rb    2013-10-25 18:50:17 +0900 (a74222e)
+++ benchmark/watch/benchmark-scan.rb    2013-10-25 18:52:49 +0900 (353f208)
@@ -20,7 +20,7 @@ require "fileutils"
 
 require "groonga"
 
-require "droonga/plugin/handler_watch"
+require "droonga/watcher"
 require File.expand_path(File.join(__FILE__, "..", "..", "utils.rb"))
 
 class ScanBenchmark
@@ -29,8 +29,7 @@ class ScanBenchmark
 
     @database = DroongaBenchmark::WatchDatabase.new
 
-    @worker = DroongaBenchmark::StubWorker.new(@database.context)
-    @watch_handler = Droonga::WatchHandler.new(@worker)
+    @watcher = Droonga::Watcher.new(@database.context)
 
     @terms = DroongaBenchmark::TermsGenerator.generate(@n_times)
     @targets = DroongaBenchmark::TargetsGenerator.generate(@n_times,
@@ -51,7 +50,7 @@ class ScanBenchmark
   end
 
   def scan(target)
-    @watch_handler.send(:scan_body, @hits, target)
+    @watcher.scan_body(@hits, target)
     @hits.clear
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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