qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] CPU consumption optimization of 'qemu-img conve


From: Dmitry Konishchev
Subject: Re: [Qemu-devel] [PATCH] CPU consumption optimization of 'qemu-img convert' using bdrv_is_allocated()
Date: Mon, 13 Jun 2011 13:13:06 +0400

On Mon, Jun 13, 2011 at 12:26 PM, Stefan Hajnoczi <address@hidden> wrote:
> The optimization is to check allocation metadata instead of
> unconditionally reading and then checking for all zeroes?
Yeah, exactly.

On Mon, Jun 13, 2011 at 12:26 PM, Stefan Hajnoczi <address@hidden> wrote:
> Why introduce a new constant instead of using BDRV_SECTOR_SIZE?
OK, I'll fix this.

On Mon, Jun 13, 2011 at 12:26 PM, Stefan Hajnoczi <address@hidden> wrote:
> "iff" is not a typo.  It means "if and only if".
Sorry, I don't know English so good. :) Will revert this.

On Mon, Jun 13, 2011 at 12:26 PM, Stefan Hajnoczi <address@hidden> wrote:
> I think the recursive is_allocated() needs its own function.  This
> function is already long/complex enough :).
I haven't done this because in this case I have to pass too lot of
local variables to this function. Just not sure that it'll look
better. But if you mind I surely can do this.

-- 
Dmitry Konishchev
mailto:address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]