Kouhei Sutou
null+****@clear*****
Mon Mar 17 22:44:27 JST 2014
Kouhei Sutou 2014-03-17 22:44:27 +0900 (Mon, 17 Mar 2014) New Revision: de2739f727e8305f13b7236cbdb824f558ea9281 https://github.com/droonga/fluent-plugin-droonga/commit/de2739f727e8305f13b7236cbdb824f558ea9281 Message: Reduce Marshal.load(Marshal.dump()) It is slow. Modified files: lib/droonga/distributed_command_planner.rb Modified: lib/droonga/distributed_command_planner.rb (+2 -2) =================================================================== --- lib/droonga/distributed_command_planner.rb 2014-03-17 19:15:24 +0900 (cfb806f) +++ lib/droonga/distributed_command_planner.rb 2014-03-17 22:44:27 +0900 (b3850a0) @@ -103,7 +103,7 @@ module Droonga unified["inputs"] = unified["inputs"] + reducer["inputs"] unified["outputs"] = unified["outputs"] + reducer["outputs"] else - unified_reducers[type] = Marshal.load(Marshal.dump(reducer)) + unified_reducers[type] = reducer.dup end end unified_reducers.values @@ -118,7 +118,7 @@ module Droonga unified["body"] = unified["body"].merge(gatherer["body"]) unified["inputs"] = unified["inputs"] + gatherer["inputs"] else - unified_gatherers[type] = Marshal.load(Marshal.dump(gatherer)) + unified_gatherers[type] = gatherer.dup end end unified_gatherers.values -------------- next part -------------- HTML����������������������������...Download