Kouhei Sutou 2019-03-01 17:36:41 +0900 (Fri, 01 Mar 2019) Revision: c822b44c9a34c5df492dac43f16798017a41a5d0 https://github.com/ranguba/chupa-text/commit/c822b44c9a34c5df492dac43f16798017a41a5d0 Message: Reduce memory usage Modified files: lib/chupa-text/virtual-content.rb Modified: lib/chupa-text/virtual-content.rb (+1 -2) =================================================================== --- lib/chupa-text/virtual-content.rb 2019-03-01 17:08:10 +0900 (096b662) +++ lib/chupa-text/virtual-content.rb 2019-03-01 17:36:41 +0900 (132e72c) @@ -34,7 +34,6 @@ module ChupaText end end @original_path = original_path - @body = nil setup_file do |file| @size = IO.copy_stream(input, file) end @@ -45,7 +44,7 @@ module ChupaText end def body - @body ||= open {|file| file.read} + open {|file| file.read} end def path -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190301/e5d6b7b1/attachment.html>