[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31138: Native json slower than json.el

From: Dmitry Gutov
Subject: bug#31138: Native json slower than json.el
Date: Tue, 23 Apr 2019 14:44:47 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 23.04.2019 6:06, Alex Gramiak wrote:

I tried making a couple patches in other areas to json.c that I hoped
would slightly improve performance, which I'll include here for
posterity. The first one uses json_dumpb over json_dumps, but from what
I can tell using it is either slower or just within error. The second
uses the *_nocheck functions where applicable, but the results seemed to
be quite similar. I suppose this means that jansson's utf-8 checking is

You might also want to try it on larger JSON documents, documents that include more numbers, etc.

With a JSON string this small, the benchmark loop might be taking most of the runtime.

Anyway, thank you for the try and the benchmarking. At this point I'm still hoping for larger gains, and they'll probably come from some higher-level changes.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]