• J
    Halve memory allocation in S3Service#download · 19770d6c
    Janko Marohnić 提交于
    Aws::S3::Object#get returns a response with object content wrapped in an
    in-memory StringIO object. StringIO#read will return a copy of the
    content, which is not necessary because we can return the content
    directly using StringIO#string. This halves memory allocation of
    S3Service#download, because we remove unnecessary content duplication.
    19770d6c
s3_service.rb 3.3 KB