swift-bench/swift/common
Samuel Merritt 2cf41b6b9f Make swift-bench use less memory with large object sizes.
Before, swift-bench would create a string of the right size and pass
that to [direct_]put_object. Uploading 5 GB objects w/concurrency of
4? Hope you've got a spare 20 GB of RAM in that machine.

Now it lazily generates chunks (of size 64 KiB) to send. In my limited
testing, this keeps RAM usage low while not impacting speed.

There's backwards-compatibility code in
direct_client.direct_put_object for any callers who are still passing
in strings. There aren't any such in Swift's codebase, though. All one
of those callers now pass an iterable.

Fixes bug 911925.

Change-Id: I40669fc00c7fb6699d8fb514e1be9b69436eca42
2012-11-08 11:13:21 -08:00
..
bench.py Make swift-bench use less memory with large object sizes. 2012-11-08 11:13:21 -08:00