[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: Mon, 22 Apr 2019 16:58:05 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 22.04.2019 16:12, Eli Zaretskii wrote:
They are the same.  The difference is that you visit the file inside
the benchmark loop, whereas I left only the conversion inside the

Interesting. I'll try that out as well sometime.

> AFAIU, doing so produces a better measurement of the JSON
> parsing part alone.

But not a better measurement of how json.c is actually used, I'm afraid (unless you're trying to cut out the time Emacs spends reading from disk). So even if my benchmark gives more attention to buffer-decoding routines, it probably reflects practical usage too (JSON usually comes from HTTP response, and it has to be decoded as well).

reply via email to

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