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: Eli Zaretskii
Subject: bug#31138: Native json slower than json.el
Date: Wed, 24 Apr 2019 10:28:02 +0300

> Cc: p.stephani2@gmail.com, sebastien@chapu.is, yyoncho@gmail.com,
>  31138@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Wed, 24 Apr 2019 09:57:26 +0300
> 
> > However, note that various 7-bit encodings will be taken by such an
> > interface as valid UTF-8, since all the bytes are 7-bit ASCII.
> > There's nothing we can do about that, just something to keep in mind
> > (it isn't supposed to happen in correct usage).
> 
> IIUC, in the case the "proper" UTF-8 decoder would do exactly the same 
> thing in this case as the "fast path" upon discussion.
> 
> BTW, this is a case one could call both "non-UTF-8" and "valid UTF-8".

No, it's valid UTF-8.





reply via email to

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