From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzWPR-0007Gf-JN for qemu-devel@nongnu.org; Sun, 18 Oct 2009 10:06:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzWPN-0007Ca-NR for qemu-devel@nongnu.org; Sun, 18 Oct 2009 10:06:57 -0400 Received: from [199.232.76.173] (port=57004 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzWPN-0007CU-Jd for qemu-devel@nongnu.org; Sun, 18 Oct 2009 10:06:53 -0400 Date: Sun, 18 Oct 2009 12:06:31 -0200 From: Luiz Capitulino Subject: Re: [Qemu-devel] Re: [PATCH 01/10] Introduce qmisc module Message-ID: <20091018120631.0ab44d80@doriath> In-Reply-To: <4AD995FD.6070202@snarc.org> References: <1255037747-3340-1-git-send-email-lcapitulino@redhat.com> <1255037747-3340-2-git-send-email-lcapitulino@redhat.com> <4AD72B88.2040107@codemonkey.ws> <20091015122622.1f93ea2d@doriath> <20091015163936.GB532@redhat.com> <20091015142837.6c90580a@doriath> <4AD76B3C.3050001@codemonkey.ws> <4AD87424.3010000@redhat.com> <4AD87901.5030705@codemonkey.ws> <4AD8AECE.9000507@redhat.com> <4AD8AFA4.4070203@codemonkey.ws> <4AD8CB31.9080809@redhat.com> <4AD8E7B5.8000509@codemonkey.ws> <4AD910BA.4090607@gnu.org> <4AD922EB.5030501@codemonkey.ws> <4AD995FD.6070202@snarc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vincent Hanquez Cc: Paolo Bonzini , qemu-devel@nongnu.org On Sat, 17 Oct 2009 11:01:33 +0100 Vincent Hanquez wrote: > Anthony Liguori wrote: > > Paolo Bonzini wrote: > >> On 10/16/2009 11:37 PM, Anthony Liguori wrote: > >>> > >>> I already am :-) Stay tuned, I should have a patch later this > >>> afternoon. > >> > >> Was it a race? (Seriously, sorry I didn't notice a couple of hours > >> ago). > >> > >> This one is ~5% slower than the "Evil" one, but half the size. > >> Tested against the comments.json file from the "Evil" parser and with > >> valgrind too. Does all the funky Unicode stuff too. > > > > I haven't benchmarked mine. While yours came out an hour earlier, I > > included a full test suite, output QObjects, and support vararg > > parsing so I think I win :-) > ar.. got mine too, i've been doing for the last 3 weeks slowly; Very nice to see all these contributions. > it got a raw/pretty printer, an interruptible parser (on the same idea > as JSON_parser.c), it's faster than JSON_parser.c [1], > it's completely generic (more like a library than an embedded thing), > fully JSON compliant (got a test suite too), support > user supplied alloc functions, and callback for integer/float doesn't > have their data converted automatically which means > that the user of the library can use whatever it want to support the > non-limited size JSON number (or just return errors for user that want > the limit). > > the library by itself is 39K with -g last time i've looked. Integration with QObjects is a killer feature, I think it's the stronger argument against grabbing one from the internet.