[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/4] qjson: store tokens in a GQueue
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 3/4] qjson: store tokens in a GQueue |
Date: |
Fri, 20 Nov 2015 11:40:22 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 11/20/2015 02:04 AM, Paolo Bonzini wrote:
> Even though we still have the "streamer" concept, the tokens can now
> be deleted as they are read. While doing so convert from QList to
> GQueue, since the next step will make tokens not a QObject and we
> will have to do the conversion anyway.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> include/qapi/qmp/json-parser.h | 4 +--
> include/qapi/qmp/json-streamer.h | 8 ++---
> monitor.c | 2 +-
> qga/main.c | 2 +-
> qobject/json-parser.c | 65
> +++++++++++++---------------------------
> qobject/json-streamer.c | 25 +++++++++-------
> qobject/qjson.c | 2 +-
> tests/libqtest.c | 2 +-
> 8 files changed, 45 insertions(+), 65 deletions(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 0/4] qjson: save a lot of memory, Paolo Bonzini, 2015/11/20
- [Qemu-devel] [PATCH 2/4] qjson: do not save/restore contexts, Paolo Bonzini, 2015/11/20
- [Qemu-devel] [PATCH 3/4] qjson: store tokens in a GQueue, Paolo Bonzini, 2015/11/20
- Re: [Qemu-devel] [PATCH 3/4] qjson: store tokens in a GQueue,
Eric Blake <=
- [Qemu-devel] [PATCH 1/4] qjson: replace QString in JSONLexer with GString, Paolo Bonzini, 2015/11/20
- [Qemu-devel] [PATCH 4/4] qjson: surprise, allocating 6 QObjects per token is expensive, Paolo Bonzini, 2015/11/20