]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osdc/Striper: implemented a lightweight version of file_to_extents
authorJason Dillaman <dillaman@redhat.com>
Wed, 8 May 2019 21:34:02 +0000 (17:34 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 13 May 2019 16:38:13 +0000 (12:38 -0400)
commita3448eda332fccc4299001e0c249eda6a8aee805
tree934bb936a7cf473dc0e0ec6c3ad7550f60bd056f
parentcc7ec3e18d191575c4d94d6f188cada800f51f72
osdc/Striper: implemented a lightweight version of file_to_extents

The previous versions of file_to_extents resulted in numerous heap
allocations for maps, vectors, and strings -- in addition to using
a CPU inefficient oid name formater.

librbd doesn't require the use of object_t and it would be better to
avoid any heap allocations on the IO path for the common case.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/osdc/Striper.cc
src/osdc/Striper.h
src/osdc/StriperTypes.h [new file with mode: 0644]