|
From: | Dmitry Gutov |
Subject: | bug#31138: Native json slower than json.el |
Date: | Mon, 22 Apr 2019 16:11:52 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 22.04.2019 15:01, Eli Zaretskii wrote:
On 22.04.2019 1:12, Dmitry Gutov wrote:Considering libjansson manages to do both JSON parsing and string conversion in ~the same time make_specified_string only does string conversion on the returned strings, it most likely follows that make_specified_string could be made faster.^ Sorry, I meant code_convert_string here.That one is called both for encoding the input and for decoding the strings in the result of parsing.
Right. So only the call to code_convert_string from json_make_string. The decoding part.
So roughly:String encoding plus libjansson parsing plus other logic in json.c takes ~the same time as string decoding only.
[Prev in Thread] | Current Thread | [Next in Thread] |