From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31138: Native json slower than json.el Date: Wed, 24 Apr 2019 10:28:02 +0300 Message-ID: <83mukf3lrx.fsf@gnu.org> References: <87sh806xwa.fsf@chapu.is> <83y349gasn.fsf@gnu.org> <83d0lfag4x.fsf@gnu.org> <5cf45a21-65c3-67ee-f123-be83a6ee7c99@yandex.ru> <83a7gjaen6.fsf@gnu.org> <83ftqa8qsg.fsf@gnu.org> <83muki6y6r.fsf@gnu.org> <4b8c6799-e845-768b-749c-f2a883ab89f8@yandex.ru> <83h8aq6v6a.fsf@gnu.org> <834l6q6ozn.fsf@gnu.org> <83zhoi59ao.fsf@gnu.org> <83wojm57sl.fsf@gnu.org> <83ftq96azk.fsf@gnu.org> <83wojk534g.fsf@gnu.org> <6308ceff-479b-2ce7-2072-41e683978c7c@yandex.ru> <83ef5s4v24.fsf@gnu.org> <25d6f575-dbda-435e-d5de-4e029432edb1@yandex.ru> <83y33z3owd.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="36934"; mail-complaints-to="usenet@blaine.gmane.org" Cc: p.stephani2@gmail.com, sebastien@chapu.is, yyoncho@gmail.com, 31138@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 24 09:34:45 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJCQW-0009T0-Nm for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2019 09:34:44 +0200 Original-Received: from localhost ([127.0.0.1]:37271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJCQV-0007in-IP for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2019 03:34:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJCNu-0005iF-A4 for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 03:32:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJCKz-0003iF-Ub for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 03:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41377) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJCKz-0003hs-RW for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 03:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hJCKz-0006DT-Ig for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 03:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Apr 2019 07:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31138 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 31138-submit@debbugs.gnu.org id=B31138.155609089723844 (code B ref 31138); Wed, 24 Apr 2019 07:29:01 +0000 Original-Received: (at 31138) by debbugs.gnu.org; 24 Apr 2019 07:28:17 +0000 Original-Received: from localhost ([127.0.0.1]:54921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJCKH-0006CV-7O for submit@debbugs.gnu.org; Wed, 24 Apr 2019 03:28:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJCKC-0006C4-Um for 31138@debbugs.gnu.org; Wed, 24 Apr 2019 03:28:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJCK6-0002S2-Qo; Wed, 24 Apr 2019 03:28:06 -0400 Original-Received: from [176.228.60.248] (port=4177 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hJCK5-000633-Td; Wed, 24 Apr 2019 03:28:06 -0400 In-reply-to: (message from Dmitry Gutov on Wed, 24 Apr 2019 09:57:26 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158169 Archived-At: > Cc: p.stephani2@gmail.com, sebastien@chapu.is, yyoncho@gmail.com, > 31138@debbugs.gnu.org > From: Dmitry Gutov > 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.