pfig/net-amazon-s3 — pull request #22 by struanb (2013-06-19 14:50:29+00:00)
Title: Allow content 'value' property to be ScalarRef

See issue #20 on pfig/net-amazon-s3. This adds support to Net::Amazon::S3::HTTPRequest (and classes that use it) for a ScalarRef content property. This makes using Net::Amazon::S3 with large amount of content more memory efficient, since it avoids memory buffers having to be allocated each time the scalar is copied from subroutine to subroutine.

N.B. Should higher-level API methods (such as Client::Object::put) wish to allow a client to pass in content via scalar ref, they should be modified accordingly to ensure they treat any scalar ref value properly (e.g. calculating the md5 correctly) before calling the underlying class but this can be addressed independently.