From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eii9y-0003dw-KT for qemu-devel@nongnu.org; Mon, 05 Feb 2018 09:54:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eii9v-0001BB-Ep for qemu-devel@nongnu.org; Mon, 05 Feb 2018 09:54:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58012) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eii9v-000192-9H for qemu-devel@nongnu.org; Mon, 05 Feb 2018 09:54:15 -0500 From: Markus Armbruster References: <20180202130336.24719-1-armbru@redhat.com> <20180202130336.24719-21-armbru@redhat.com> Date: Mon, 05 Feb 2018 15:53:47 +0100 In-Reply-To: (Marc-Andre Lureau's message of "Mon, 5 Feb 2018 14:46:05 +0100") Message-ID: <87inbbv66c.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH RFC 20/21] Include less of qapi-types.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marc-Andre Lureau Cc: marcandre , qemu-devel , mdroth@linux.vnet.ibm.com Marc-Andre Lureau writes: > On Fri, Feb 2, 2018 at 2:03 PM, Markus Armbruster wro= te: >> In my "build everything" tree, a change to the types in >> qapi-schema.json triggers a recompile of about 4500 out of 4800 >> objects. >> >> The previous commit split up the generated qapi-types.h. Replace >> includes of qapi-types.h (i.e. all types) by includes of parts where >> possible. >> >> To illustrate the benefits: adding a type to qapi/migration.json now >> recompiles some 2300 instead of 4500 objects. The next commit will >> improve it further. >> >> Signed-off-by: Markus Armbruster > > for the record, what was your methodology? I counted compiles like this: $ make 2>&1 | awk '/^ [A-Z]/ { h[$1]++ } END { n =3D asorti(h, x); for= (i =3D 1; i <=3Dn; i++) print x[i], h[x[i]] }' > Reviewed-by: Marc-Andr=C3=A9 Lureau Thanks!