|
From: | Dmitry Gutov |
Subject: | bug#31138: Native json slower than json.el |
Date: | Sun, 21 Apr 2019 12:15:59 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 21.04.2019 11:58, Eli Zaretskii wrote:
I profiled the code, and my results are very similar to yours. My interpretation of the results is that decoding strings that we receive from the jansson library takes less than 10% of the CPU time. So I think we don't need to worry about this aspect when considering parsing of JSON objects.
Eli, how did you reach that conclusion?One: looking at the profile, libjansson is somewhere down below, and most of the runtime is taken by Emacs.
Two: while I might be misreading the profile, simply omitting the decoding function call (and using the returned strings as-is) halves the execution time.
How could that be compatible with your interpretation?
[Prev in Thread] | Current Thread | [Next in Thread] |