]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/ObjectStore.cc: prefer prefix ++operator for non-primitive types
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 5 Nov 2013 18:40:47 +0000 (19:40 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 7 Nov 2013 22:31:13 +0000 (23:31 +0100)
commita8e10d3d0a27436c6f1df2601678a8abcc4b79f5
treea4c8f32d29ebc55a90f112651697d6c293da3ce1
parent555e71779513b89440edffc023e6d2258d4562d7
os/ObjectStore.cc: prefer prefix ++operator for non-primitive types

Prefer prefix ++operator for non-primitive types like iterators for
performance reasons. Prefix ++/-- operators avoid creating a temporary
copy.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/ObjectStore.cc