From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKEAB-0002hm-4e for qemu-devel@nongnu.org; Tue, 28 Jul 2015 19:20:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKEA5-0000ZC-8R for qemu-devel@nongnu.org; Tue, 28 Jul 2015 19:19:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKEA5-0000Z5-2r for qemu-devel@nongnu.org; Tue, 28 Jul 2015 19:19:53 -0400 References: <1435782155-31412-1-git-send-email-armbru@redhat.com> <1435782155-31412-48-git-send-email-armbru@redhat.com> From: Eric Blake Message-ID: <55B80E11.6020000@redhat.com> Date: Tue, 28 Jul 2015 17:19:45 -0600 MIME-Version: 1.0 In-Reply-To: <1435782155-31412-48-git-send-email-armbru@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="K14PrnQMOlBsgjURv4btGVacXpiWCRiog" Subject: Re: [Qemu-devel] [PATCH RFC v2 47/47] qapi-introspect: Hide type names List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , qemu-devel@nongnu.org Cc: kwolf@redhat.com, berto@igalia.com, mdroth@linux.vnet.ibm.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --K14PrnQMOlBsgjURv4btGVacXpiWCRiog Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 07/01/2015 02:22 PM, Markus Armbruster wrote: > To eliminate the temptation for clients to look up types by name > (which are not ABI), replace all type names by meaningless strings. >=20 > Reduces output of query-schema by 9 out of 80KiB. Among other things, it replaced all instances of 'str' with ':acg', and all instances of 'int' with ':adu' (at least for the qapi-schema.json files at the point in qemu.git that I tested on); if you were to tweak things to NOT rename builtin types (limiting the renaming to just object and array types), you'd save even more space and make libvirt's life easier by not masking builtin types. (Yes, the 'meta-type':'builtin' entry for 'str' should still be present whether or not we hide the name 'str', but knowing the small set of builtin names up front and only having to chase objects and arrays seems a bit more efficient) --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --K14PrnQMOlBsgjURv4btGVacXpiWCRiog Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVuA4WAAoJEKeha0olJ0Nq4qAH/RQS3E5j7YWL8QpkRCncnHOZ /pfmYV9kEovHK0hfH/28Fc+FuaZR40OAHBRM9iNEeixH9x+mFoIZiXPQV68E0OM/ QPTfSa0RviOuD/an8YpEHvmg3VwRnQzL2nDhbg4RKJqmmEwoGGmCTCd1Sc+zJ+tU tzZEnj61kJJjF7Ye2xfTCU/5LXsea6fL2sMkDb7HJ8JuySvU2QOvEitPCJZEh0ge +euN2X+CBXGrRxV9BmAgW7j1SiI4hTNU+v7Jeq9uabm4wlcsvhTBJfJSXNF8GfXR 5104NTkcF9Y9bwjXdemiRyGjWtLiSh/gWvgoVggDe80DYb06QcyhnZzfcC0Z0WU= =k5T6 -----END PGP SIGNATURE----- --K14PrnQMOlBsgjURv4btGVacXpiWCRiog--