From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#31138: Native json slower than json.el Date: Mon, 22 Apr 2019 14:48:52 +0300 Message-ID: <10ca4e2f-b116-16bc-c81e-24036752c867@yandex.ru> References: <87sh806xwa.fsf@chapu.is> <83lg12n75s.fsf@gnu.org> <83h8bqn2ik.fsf@gnu.org> <83zhphliil.fsf@gnu.org> <181b93a3-3861-0481-1b95-8344410d1049@yandex.ru> <83r2a2hdxn.fsf@gnu.org> <21f68973-a684-2a65-82eb-c8f3df90127f@yandex.ru> <83d0lmgez2.fsf@gnu.org> <7d503be9-4d85-3d0b-6829-631ad376ba3d@yandex.ru> <831s22gcci.fsf@gnu.org> <83y349gasn.fsf@gnu.org> <83d0lfag4x.fsf@gnu.org> <5cf45a21-65c3-67ee-f123-be83a6ee7c99@yandex.ru> <83a7gjaen6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="188052"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 Cc: =?UTF-8?Q?S=C3=A9bastien?= Chapuis , 31138@debbugs.gnu.org To: Philipp Stephani , yyoncho Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 22 13:50:11 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 1hIXSc-000mmt-VV for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2019 13:50:11 +0200 Original-Received: from localhost ([127.0.0.1]:36180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIXSc-0002ms-0G for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2019 07:50:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIXSV-0002mR-GS for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 07:50:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIXSU-0001nO-F3 for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 07:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIXSU-0001nJ-Bn for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 07:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hIXSU-0004YZ-6a for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 07:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Apr 2019 11:50:02 +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.155593374317445 (code B ref 31138); Mon, 22 Apr 2019 11:50:02 +0000 Original-Received: (at 31138) by debbugs.gnu.org; 22 Apr 2019 11:49:03 +0000 Original-Received: from localhost ([127.0.0.1]:50011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIXRX-0004XJ-5Y for submit@debbugs.gnu.org; Mon, 22 Apr 2019 07:49:03 -0400 Original-Received: from mail-lj1-f178.google.com ([209.85.208.178]:35016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIXRV-0004Wp-MS for 31138@debbugs.gnu.org; Mon, 22 Apr 2019 07:49:02 -0400 Original-Received: by mail-lj1-f178.google.com with SMTP id t4so10064064ljc.2 for <31138@debbugs.gnu.org>; Mon, 22 Apr 2019 04:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=e3Zw/NyQfpgypnz5RPsG1Z96TxyaXzUua0T9/cqUjQ8=; b=VONgAUsgNkmg28auvz5XzfI+NiJwt81VcRpnqf0b965c1OAR0JgbCa/wOsLdEqjD8c 2z+GzUdJlNq/7hKX+mybfiQa3yLdihCmpq98j/Y5D+PD7rqksApWi/wzJFjay8zwXeXv 8ts54NkInq9HLntFbPYiLzUXwZImB/MjNWzH2f72Dhm3do+7Q/hYfbinOJIRLsa4+T5K xhz4KNg0E9X6kPGPZaWl7eGae92YA6xMikTgq/WerO0hKzXcklr4+VP7opNULLFmxPXS n1idRdKck7UjhJ43AZmxKBAuzu8bdVEB0BgUKkLxGHlrk4Ouf0WDW2ifjMXx3pRjkwEP +ngA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=e3Zw/NyQfpgypnz5RPsG1Z96TxyaXzUua0T9/cqUjQ8=; b=BWZZzqcNeZjyS9JnROazLGY1Jy7Wl/tVNTIdY70Ww3yKgPsCpoxqYBP7QPGTOzmqaI qIr8R0DoukqwoP2uM4lPjJJk7ZSYW9px+EDNV08gbyUSU6HwCMTka+LyV18+VnJgrO0a UUI/VvubRtdH7zq2dmWRMoKA19bfakPQZXPxq1pp3wWPc7FzwhkbeUq+Tfga+nNuZfEg t2vO6DNaM+lv9hactAm60FHcYNu11MeRjGawLuntbyAOmhbPD6uou1OKgpXRxbDab9rj Cp4tQWDswj5GkokyuPu1Q4okgdXY7/T2h40WR61sjgYcEvl33c7An7eMrAjQHhZD0qNC 8e6g== X-Gm-Message-State: APjAAAVCC7+M/efoaEaqD43zna1FgEUKRLHG/gdpcpanfVBz4U0SSbxQ vEw/yvlJYEcmCl8cHaTmhUOPfiJA X-Google-Smtp-Source: APXvYqz003n+b3B42/ibcUPKeA2YceMRVj9Bl0ulFgtpqtED1f9Dt8L7qDEXx+k3NKeMpGs8HPCOjw== X-Received: by 2002:a2e:8794:: with SMTP id n20mr10430941lji.76.1555933735618; Mon, 22 Apr 2019 04:48:55 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.23]) by smtp.googlemail.com with ESMTPSA id o3sm2951937lfn.41.2019.04.22.04.48.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 04:48:55 -0700 (PDT) In-Reply-To: Content-Language: en-US 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:158019 Archived-At: On 21.04.2019 16:33, Philipp Stephani wrote: > Am So., 21. Apr. 2019 um 15:10 Uhr schrieb yyoncho: >> Hi Philipp, >> >> As Eli commented in this thread, the decoding is must have for all external libraries no matter what is their contract. > I disagree. If I simply apply the patch from https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31138#5, that breaks tests in test/src/json-tests.el. In particular, json-parse-string/string: F json-parse-string/string (ert-test-failed ((should (equal (json-parse-string "[\"abcαβγ\"]") ["abcαβγ"])) :form (equal ["abc\316\261\316\262\316\263"] ["abcαβγ"]) :value nil :explanation (array-elt 0 (arrays-of-different-length 9 6 "abc\316\261\316\262\316\263" "abcαβγ" first-mismatch-at 3)))) Would somebody like to propose an alternative patch?