From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs8Rn-0001C2-VM for qemu-devel@nongnu.org; Fri, 30 Oct 2015 08:06:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zs8Rk-0000ml-NB for qemu-devel@nongnu.org; Fri, 30 Oct 2015 08:06:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs8Rk-0000mV-IK for qemu-devel@nongnu.org; Fri, 30 Oct 2015 08:06:16 -0400 Date: Fri, 30 Oct 2015 21:06:05 +0900 From: "Daniel P. Berrange" Message-ID: <20151030120605.GA20961@redhat.com> References: <1446203414-4013-1-git-send-email-kraxel@redhat.com> <1446203414-4013-2-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1446203414-4013-2-git-send-email-kraxel@redhat.com> Subject: Re: [Qemu-devel] [PATCH 01/19] buffer: make the Buffer capacity increase in powers of two Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: pl@kamp.de, qemu-devel@nongnu.org On Fri, Oct 30, 2015 at 12:09:56PM +0100, Gerd Hoffmann wrote: > From: Peter Lieven > > This makes sure the number of reallocs is in O(log N). > > Signed-off-by: Peter Lieven > > [ rebased to util/buffer.c ] > > Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrange Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|