[PATCH 2/4] Btrfs: improve the performance of the csums lookup

2013-03-28 Thread Miao Xie
It is very likely that there are several blocks in bio, it is very inefficient if we get their csums one by one. This patch improves this problem by getting the csums in batch. According to the result of the following test, the execute time of __btrfs_lookup_bio_sums() is down by ~28%(300us -

Re: [PATCH 2/4] Btrfs: improve the performance of the csums lookup

2013-03-28 Thread Liu Bo
On Thu, Mar 28, 2013 at 04:10:41PM +0800, Miao Xie wrote: It is very likely that there are several blocks in bio, it is very inefficient if we get their csums one by one. This patch improves this problem by getting the csums in batch. According to the result of the following test, the