Kouhei Sutou
null+****@clear*****
Sun Sep 7 22:54:03 JST 2014
Kouhei Sutou 2014-09-07 22:54:03 +0900 (Sun, 07 Sep 2014) New Revision: 75bc4b65404b91b1a0b02429d362dba95c1e156f https://github.com/droonga/droonga-message-pack-packer-ruby/commit/75bc4b65404b91b1a0b02429d362dba95c1e156f Message: Add #clear to reuse the same instance The usage provides better performance. Modified files: lib/droonga/message-pack-packer.rb Modified: lib/droonga/message-pack-packer.rb (+4 -0) =================================================================== --- lib/droonga/message-pack-packer.rb 2014-05-29 22:14:03 +0900 (ad26673) +++ lib/droonga/message-pack-packer.rb 2014-09-07 22:54:03 +0900 (7f62d9f) @@ -62,5 +62,9 @@ module Droonga def to_s @packer.to_s end + + def clear + @packer.clear + end end end -------------- next part -------------- HTML����������������������������...Download