vendor/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.4.245/lib/new_relic/agent/new_relic_service.rb
# We do not compress if content is smaller than 64kb.  There are
# problems with bugs in Ruby in some versions that expose us
# to a risk of segfaults if we compress aggressively.
We do not compress if content is smaller than 64kb.  There are
problems with bugs in Ruby in some versions that expose us
to a risk of segfaults if we compress aggressively.
We do not compress if content is smaller than 64kb . There are problems with bugs in Ruby in some versions that expose us to a risk of segfaults if we compress aggressively .
def compress_request_if_needed(data)
        encoding = 'identity'
        if data.size > 64 * 1024
          data = Encoders::Compressed.encode(data)
          encoding = 'deflate'
        end
        check_post_size(data)
        [data, encoding]
      end
def compress_request_if_needed ( data ) encoding = 'identity' if data . size > 64 * 1024 data = Encoders :: Compressed . encode ( data ) encoding = 'deflate' end check_post_size ( data ) [ data , encoding ] end
We do not compress if content is smaller than 64kb.
We do not compress if content is smaller than 64kb .
data