From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJijt-0000oR-Qj for qemu-devel@nongnu.org; Mon, 27 Jul 2015 09:46:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJijp-0002zi-QS for qemu-devel@nongnu.org; Mon, 27 Jul 2015 09:46:45 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:32819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJijp-0002zH-FG for qemu-devel@nongnu.org; Mon, 27 Jul 2015 09:46:41 -0400 Received: by wicmv11 with SMTP id mv11so140142619wic.0 for ; Mon, 27 Jul 2015 06:46:40 -0700 (PDT) Sender: Paolo Bonzini References: <507c11db2c97eef33de0e4f7168076d5c39f0867.1436866326.git.p.fedin@samsung.com> <87r3ntzra9.fsf@blackfin.pond.sub.org> <20150727132332.GD9132@redhat.com> From: Paolo Bonzini Message-ID: <55B6363E.1090502@redhat.com> Date: Mon, 27 Jul 2015 15:46:38 +0200 MIME-Version: 1.0 In-Reply-To: <20150727132332.GD9132@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 2/2] QOM: object_property_add() performance improvement List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , Markus Armbruster Cc: Peter Crosthwaite , Pavel Fedin , qemu-devel@nongnu.org, =?UTF-8?Q?Andreas_F=c3=a4rber?= On 27/07/2015 15:23, Daniel P. Berrange wrote: > It feels like a poor hack to deal with fact that we've not got support > for setting non-scalar properties. Since we're representing arrays > implicitly, See http://lists.gnu.org/archive/html/qemu-devel/2014-10/msg00623.html: ------------------ "Automatic arrayification" isn't about array-valued properties, it's a convenience feature for creating a bunch of properties with a common type, accessors and so forth, named in a peculiar way: "foo[0]", "foo[1]", ... The feature saves the caller the trouble of generating the names. That's all there is to it. ------------------ Paolo