Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/rados: reduce rados put memory usage by op_size
indata.append(char*, len) causes buffer "buf" to be physically copied to new memory block. Make static buffer pointing to buf so we don't need any intermediate copies. This reduces memory usage by op_size, and also cpu usage by a bit (no memmove necessary). Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
- Loading branch information