optionally use net-http-persistent for StringIO
commit2cbeef0f29be4de815b802e705528b6f05d1bb29
authorEric Wong <normalperson@yhbt.net>
Wed, 24 Oct 2012 07:27:18 +0000 (24 07:27 +0000)
committerEric Wong <normalperson@yhbt.net>
Wed, 24 Oct 2012 07:27:18 +0000 (24 07:27 +0000)
tree856b6bb39f6813074c6a3856ccb2cdb0e56275bc
parent231d1a91292f39d42df2317a2fe4eaa96fd68f41
optionally use net-http-persistent for StringIO

Given StringIO objects are already in memory, NHP can make
small uploads which fit into memory faster.  Large uploads
(using big_io or :largefile => :stream still go through
 IO.copy_stream for now)
lib/mogilefs.rb
lib/mogilefs/http_file.rb
lib/mogilefs/new_file/content_range.rb
test/test_mogilefs.rb