bug-gnu-emacs
[Top][All Lists]
Advanced

[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 01:23:44 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 22.04.2019 20:26, Eli Zaretskii wrote:
I don't think we should abort, we don't do that anywhere else.

The key word here is "validation". If certain folks in this discussion are right, libjansson always returns valid utf-8 encoded strings, or intends to.

So if we implement fast validation for multibyte strings as well, the "else" branch should never be taken, and it would make sense to abort in that case. Not necessarily abort as in "exit Emacs", but maybe signal an error. The libjansson developers might in the end be thankful for bug reports.





reply via email to

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