> On Feb 3, 2015, at 11:38 AM, Rick Mann <[email protected]> wrote:
> 
> It only sends one file at a time, partly because it loads the contents into 
> RAM to do the upload

FYI: If you memory-map the file contents there's a lot less overhead to this. 
Assuming you're using NSData, use both the NSDataReadingMappedIfSafe and 
NSDataReadingUncached flags. The result will be roughly equivalent to reading 
the file directly off disk without storing it in RAM. 

(You still have to worry about running out of address space, though, so in a 
32-bit process you probably shouldn't open more than maybe a gigabyte of files 
this way. In 64-bit you're only limited by the max number of open file 
descriptors, which I think defaults to 256.)

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to