]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/hobject.h: don't reverse bits in zero 6653/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 19 Nov 2015 09:57:46 +0000 (10:57 +0100)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 19 Nov 2015 09:57:46 +0000 (10:57 +0100)
commit9109f14ea10d6cd0dd0605a2e2b9ad8398cbf392
tree8f2925f519a004ab1fa7b4336f221e92f249ffc9
parentb75d1074f67f3409ab97c0731f948efe5c1e8622
common/hobject.h: don't reverse bits in zero

Zero is passed in around 30% of all calls to _reverse_bits (and most of
them during daemon startup). Optimize this by not doing anything in
that special case and returning 0.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
src/common/hobject.h