]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/io_exerciser: performance, readability and safety improvements
authorJonBailey1993 <jonathan.bailey1@ibm.com>
Thu, 19 Sep 2024 14:44:22 +0000 (15:44 +0100)
committerJonBailey1993 <jonathan.bailey1@ibm.com>
Thu, 19 Sep 2024 14:44:22 +0000 (15:44 +0100)
commit81c8c8c71f0e5efe3aaa466a09af1c477770ab06
treeae9fcc2b8a4a4fcea48050ef0e914402b5db0c37
parentafb6399c40027dc8d696665dc10a7da18e5de8a8
common/io_exerciser: performance, readability and safety improvements

Removes use of const members to allow possibility of moving.
Changes strings that were passed by value to now be const ref.
Adds readability improvements to shorten repeated use of long namespace names in cpp files.
Use std::generator for initialisation of seeds instead of previous for loop

Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
src/common/io_exerciser/DataGenerator.cc
src/common/io_exerciser/IoOp.cc
src/common/io_exerciser/IoSequence.cc
src/common/io_exerciser/Model.cc
src/common/io_exerciser/Model.h
src/common/io_exerciser/ObjectModel.cc
src/common/io_exerciser/ObjectModel.h
src/common/io_exerciser/RadosIo.cc
src/common/io_exerciser/RadosIo.h