|
From: | Dmitry Gutov |
Subject: | bug#31138: Native json slower than json.el |
Date: | Mon, 22 Apr 2019 16:54:19 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 22.04.2019 10:16, Eli Zaretskii wrote:
Please don't forget that json-parse-string first_encodes_ the input string in UTF-8, then passes it to libjansson, then_decodes_ each string element it receives back. So we do some non-trivial processing besides make_specified_string, and removing decoding only saves part of that.
That actually means that speeding up code_convert_string might *potentially* (e.g. if it's infinitely fast) yield more than 50% performance improvement.
[Prev in Thread] | Current Thread | [Next in Thread] |