]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ErasureCode: optimize padding calculation 619/head
authorLoic Dachary <loic@dachary.org>
Mon, 23 Sep 2013 07:16:18 +0000 (09:16 +0200)
committerLoic Dachary <loic@dachary.org>
Mon, 23 Sep 2013 22:08:36 +0000 (00:08 +0200)
commitc32c51a3f3feff8d734bd9330306905888c6cf8d
treedb0cd74342cc6b0c3cd1791e609b3feb97adee4b
parent97471e333e71ad0616342f45456af1f96b4928a7
ErasureCode: optimize padding calculation

Andreas-Joachim Peters pointed out that the ErasureCodeJerasure method
pad_in_length is very inefficient for no reason. It is replaced by the
alignment method and the calculation is inlined in the encode method.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/osd/ErasureCodePluginJerasure/ErasureCodeJerasure.cc
src/osd/ErasureCodePluginJerasure/ErasureCodeJerasure.h