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 19:00:13 +0300 Message-ID: References: <87sh806xwa.fsf@chapu.is> <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> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="19436"; 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: sebastien@chapu.is, yyoncho@gmail.com, 31138@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 22 18:04:51 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 1hIbR4-0004vo-Im for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2019 18:04:50 +0200 Original-Received: from localhost ([127.0.0.1]:39544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIbR3-00067z-As for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2019 12:04:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIbNP-0003fO-4s for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 12:01:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIbNO-0005S1-9u for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 12:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIbNO-0005Ro-6E for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 12:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hIbNO-0002pI-3o for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 12:01: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 16:01: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.155594882410806 (code B ref 31138); Mon, 22 Apr 2019 16:01:02 +0000 Original-Received: (at 31138) by debbugs.gnu.org; 22 Apr 2019 16:00:24 +0000 Original-Received: from localhost ([127.0.0.1]:51306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIbMm-0002oE-Gv for submit@debbugs.gnu.org; Mon, 22 Apr 2019 12:00:24 -0400 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:36565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIbMk-0002nw-Al for 31138@debbugs.gnu.org; Mon, 22 Apr 2019 12:00:22 -0400 Original-Received: by mail-wr1-f43.google.com with SMTP id b1so4958290wru.3 for <31138@debbugs.gnu.org>; Mon, 22 Apr 2019 09:00:22 -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=6JuUX0iJrq8wz9JPvqA8MCfHQaMCIPeP+yGmQFewDS0=; b=cQkWaiA83a0SylM6Ys2pmwx59gIp9OH5bthJCpnqcH2JbZhsbOklBfjDwAyGm1byZP Xu3jqm+DdUggcWmqXtpunc2NunsDjq5v4v2LtYi5MebW9xS9t7pmb8k+9w5KKzmE36zB xJFDCvy69/mH3HaGai6aRPvcQdvZia/MAOg3vLMbiAeikfEpE3naxxFPrkhEUQ/wwAzP DMnyR24Eg2KHmVzJuHyomr8HFJ5c0wD88Tgaa7UI1UpaXg8SDZD/Z5/o9YVQes7NpgwB FgkjaNqo5mppJhjNNVD3HrMQRYPwKFiqm5cnZ4dD+v86uKJb2OqoT4YczUHJjvx/oH0m 8afw== 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=6JuUX0iJrq8wz9JPvqA8MCfHQaMCIPeP+yGmQFewDS0=; b=Aj+nstzwY2lqlsxugcIxf04pL/bd8ueNXGte0EgcmMBFsll460FCPbZhr/WuobhMIB lpJBcQ7jiyp2RDuipBvRx8jVZdv0m7BLiBdSSV5aPzYshsHNZjqy0zwN/IeIGdJyL0eo 7cfLtyDxkoj0z9AW2vjXwWQAnHj5FRX+VKsoo8IV6xXsIFt2bID2qEYYYY7l4Xc0wn0b OOYCzCvJ+mepcD/FLw1MEBV2qN7lWNRDMSQ7g+nXIE9hNw+hcex/v1m11HfrgSWZ/G0O ixU1sHZ8tGeD6/N2igaSOdrL3kHMSNodVSuygbvwJEqBHuNSwBGVYTxet/uC/E/71Pzb 70FQ== X-Gm-Message-State: APjAAAX1362tlLoWUZgoB+lOMS3uimSaK01wVPREAgk2IoSTwTtEXrVh SZ+psosMijEn8F4PaX3Qo21hKUw8 X-Google-Smtp-Source: APXvYqzNSWAL9p+0Wxs2tr1QdnEwJd5ahR3FL+q3nkKaVbGZ5SoBgQ31yip5o24BYOs6onxWoQoc1A== X-Received: by 2002:adf:d850:: with SMTP id k16mr7304551wrl.35.1555948816332; Mon, 22 Apr 2019 09:00:16 -0700 (PDT) Original-Received: from [192.168.0.195] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id x16sm5166831wrt.96.2019.04.22.09.00.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 09:00:15 -0700 (PDT) In-Reply-To: <83zhoi59ao.fsf@gnu.org> 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:158053 Archived-At: On 22.04.2019 18:50, Eli Zaretskii wrote: > (You should have used > insert-file-contents-literally instead.) I wonder if there's a counterpart for that for HTTP responses returned by url-retrieve. > And I don't think we will be > able to speed up the general-purpose decoding routines: no one said > the original file is encoded in UTF-8. We could speed up certain important cases, like where the bytes are identical between the source and the destination. I could be wrong here, though, this is already out of my depth.