]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer.cc: short-circuit in copy_out for small lengths
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 16 Jul 2015 08:18:54 +0000 (10:18 +0200)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Tue, 4 Aug 2015 07:56:32 +0000 (09:56 +0200)
commit33e1f17dd195c0ad45c0e65aae4d97a04c782903
tree60bf7a36ebc42ebec63b13deffe9f99a6f7a0d18
parente79ee92e8ca92776f991a3877c4105655f11d14d
buffer.cc: short-circuit in copy_out for small lengths

For small lengths (1, 2, 4 and 8 bytes) use shorter code paths, this
increases performance of function by around 40%.

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