Skip to content

Commit

Permalink
Merge pull request #2031 from ksss/decompress
Browse files Browse the repository at this point in the history
Compressable#decompress Improve performance
  • Loading branch information
repeatedly authored Jun 25, 2018
2 parents 048d30f + 540fee7 commit b593e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/compressable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def string_decompress(compressed_data)
out = ''
loop do
gz = Zlib::GzipReader.new(io)
out += gz.read
out << gz.read
unused = gz.unused
gz.finish

Expand Down

0 comments on commit b593e6f

Please sign in to comment.