]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer.cc: short-circuit copy_in for small lengths 5259/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 16 Jul 2015 09:19:37 +0000 (11:19 +0200)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Tue, 4 Aug 2015 07:59:13 +0000 (09:59 +0200)
commit311ef972cc1f794969459302b08e3de403ce7e06
tree159c6a49c877f12532318838892e35bd467731eb
parentae2396ec07c83b8f0d01618cdcc98ceec85ef0df
buffer.cc: short-circuit copy_in for small lengths

For small lengths (below 64 bytes) use shorter code paths, this
increases performance of function by up to 40%.

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