]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: create a faster & cleaner alternative to argv_to_vec() 42820/head
authorRonen Friedman <rfriedma@redhat.com>
Tue, 17 Aug 2021 05:11:15 +0000 (05:11 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 17 Aug 2021 18:06:58 +0000 (18:06 +0000)
commitb89d4c74822cb0a90a0b9c72120c02b33a415dad
treeca8ca72f7fd1323ea934321037713a8f8d5a4f96
parent4ef4148125140738b870c3781af5e09bd15a9622
common: create a faster & cleaner alternative to argv_to_vec()

New function signature follows current C++ guidance regarding
returning values from functions. It is also faster
- 1.3X for a sample test of 10 arguments.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
Co-authored-by: Kefu Chai <tchaikov@gmail.com>
src/ceph_osd.cc
src/common/ceph_argparse.cc
src/common/ceph_argparse.h