Received: from eggs.gnu.org ([2001:4830:134:3::10]:59109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bL51w-0006Y3-CA for qemu-devel@nongnu.org; Thu, 07 Jul 2016 04:51:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bL51r-0004nc-Ak for qemu-devel@nongnu.org; Thu, 07 Jul 2016 04:51:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bL51r-0004nE-4q for qemu-devel@nongnu.org; Thu, 07 Jul 2016 04:51:27 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0CC0080E47 for ; Thu, 7 Jul 2016 08:51:26 +0000 (UTC) From: Markus Armbruster References: <1467809017-25023-1-git-send-email-pbonzini@redhat.com> Date: Thu, 07 Jul 2016 10:02:24 +0200 In-Reply-To: <1467809017-25023-1-git-send-email-pbonzini@redhat.com> (Paolo Bonzini's message of "Wed, 6 Jul 2016 14:43:36 +0200") Message-ID: <87poqpswof.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] qapi: change QmpOutputVisitor to QSLIST List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Paolo Bonzini writes: > This saves a little memory compared to the doubly-linked QTAILQ. > > Signed-off-by: Paolo Bonzini The memory savings are trivial: we go from 160 + 24*d to 160 + 16*d, where d is the depth of the tree we visit, almost always in the single digits. But I like the simplicity of a singly linked list. Reviewed-by: Markus Armbruster