Re: [Libguestfs] [nbdkit PATCH] data, memory: Optimize .zero > PAGE_SIZE

2019-08-15 Thread Eric Blake
On 8/15/19 5:25 AM, Richard W.M. Jones wrote: > On Wed, Aug 14, 2019 at 09:10:15PM -0500, Eric Blake wrote: >> When sparse_array_zero() is used for a range larger than a page, >> there's no need to waste time in memset() or is_zero() - we already >> know the page will be free()d. >> >>

Re: [Libguestfs] [nbdkit PATCH] data, memory: Optimize .zero > PAGE_SIZE

2019-08-15 Thread Richard W.M. Jones
On Wed, Aug 14, 2019 at 09:10:15PM -0500, Eric Blake wrote: > When sparse_array_zero() is used for a range larger than a page, > there's no need to waste time in memset() or is_zero() - we already > know the page will be free()d. > > Signed-off-by: Eric Blake > --- > > Here's a fun one :) > >