qemu-patch-raspberry4/include/qapi
Paolo Bonzini 9bada89711 qjson: surprise, allocating 6 QObjects per token is expensive
Replace the contents of the tokens GQueue with a simple struct.  This cuts
the amount of memory allocated by tests/check-qjson from ~500MB to ~20MB,
and the execution time from 600ms to 80ms on my laptop.  Still a lot (some
could be saved by using an intrusive list, such as QSIMPLEQ, instead of
the GQueue), but the savings are already massive and the right thing to
do would probably be to get rid of json-streamer completely.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1448300659-23559-5-git-send-email-pbonzini@redhat.com>
[Straightforwardly rebased on my patches]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2015-11-26 10:07:07 +01:00
..
qmp qjson: surprise, allocating 6 QObjects per token is expensive 2015-11-26 10:07:07 +01:00
dealloc-visitor.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
error.h qapi: Simplify error cleanup in test-qmp-* 2015-11-10 08:08:21 +01:00
opts-visitor.h OptsVisitor: don't try to flatten overlong integer ranges 2013-08-20 11:52:00 -04:00
qmp-event.h qapi: add event helper functions 2014-06-23 11:01:25 -04:00
qmp-input-visitor.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qmp-output-visitor.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
string-input-visitor.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
string-output-visitor.h qapi: Add human mode to StringOutputVisitor 2014-02-14 21:12:03 +01:00
util.h qom: Make enum string tables const-correct 2015-06-19 18:42:18 +02:00
visitor-impl.h qapi: Introduce a first class 'any' type 2015-09-21 09:56:49 +02:00
visitor.h qapi: Introduce a first class 'any' type 2015-09-21 09:56:49 +02:00