]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/osd_types.cc: get rid of str concat when making hash key 5418/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 30 Jul 2015 09:36:43 +0000 (11:36 +0200)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Tue, 4 Aug 2015 06:34:32 +0000 (08:34 +0200)
commitf68553e7e06b3f06757b88b7fe9bdc1c1cadc75e
treea48f4a1a7b7edc1e3774d6682647bffb74d0add9
parentf7bda9567d2a1acf015ab891eb5bb9ca0cdc8396
osd/osd_types.cc: get rid of str concat when making hash key

When namespaces are used, during hash key calculation there's temporary
string involved which is generated by concatenating string with a char
and another string. Get rid of that and of allocation of string, and keep
all on stack. Improves object access performance when namespaces are used.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
src/osd/osd_types.cc