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 22:55:40 +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> <83wojm57sl.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="52108"; 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 21:58:58 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 1hIf5e-000DQm-I0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2019 21:58:58 +0200 Original-Received: from localhost ([127.0.0.1]:43591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIf5d-0002Db-Ip for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2019 15:58:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIf2s-0000Am-Cj for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 15:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIf2o-0004Nw-00 for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 15:56:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38113) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIf2n-0004Nq-TM for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 15:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hIf2n-0004Zr-Oh for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 15:56:01 -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 19:56: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.155596295317579 (code B ref 31138); Mon, 22 Apr 2019 19:56:01 +0000 Original-Received: (at 31138) by debbugs.gnu.org; 22 Apr 2019 19:55:53 +0000 Original-Received: from localhost ([127.0.0.1]:51657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIf2f-0004ZT-CI for submit@debbugs.gnu.org; Mon, 22 Apr 2019 15:55:53 -0400 Original-Received: from mail-lf1-f44.google.com ([209.85.167.44]:39098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIf2d-0004ZH-Ux for 31138@debbugs.gnu.org; Mon, 22 Apr 2019 15:55:52 -0400 Original-Received: by mail-lf1-f44.google.com with SMTP id d12so9857785lfk.6 for <31138@debbugs.gnu.org>; Mon, 22 Apr 2019 12:55:51 -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=MSTkMV9N9ZdfNUouLDmyiMi1KcKLXsakRmSV/PSie18=; b=HorkrNVCECpkeCVe75Q0ekTPNf75WoPXOExywzkALW3hxpbZtKH4efQWMCobNbw/Mg B6+owVA3w/IzjGzyU9oP47KPhUhrSZDWOu11A7y1yTAmDLyda9xJXU1jnIawyb7hpzKY 4ajYF6jZeHknz2lMhf3uDxY12czJnujxojblHP/2oP7cKwrPXkqaukLKhY32rqS5hkOX dUQfLCoRsywzMoqVWxAQgPmCxb8i3FJ41+eIwkUKXPCgdWBrLFgUoTATGdGmtNhkt5Uv ysa1TsJCPBbWEBAdfRVgCB5SSRVtfef2zNBfkhcfhxY2Vuz2gbQSXLoT3qhhK0s441Fv lbDQ== 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=MSTkMV9N9ZdfNUouLDmyiMi1KcKLXsakRmSV/PSie18=; b=onB6a+raznluAe0Z1cE9tGSGIeNfpnDPQePPbyTwlM4HfkNTRqGE0jK1ilZzRDfSiN gzSzFPLQ1/WiAMKhtZnZt1XzvJJJ6NdaWSGGR1T6Z7594QQrGnigCht7P/YFfMoTjxPX YvCvneHlt2NN9THIhQBRRnz7eaIvVQjeKAd5EdAIJnwmCL27h/s4kHcswOvAnmuAjDuF QhAJsOVCWEUesejVJbDUTxzR/yFWmG4rC25DCSy1QCGRG9rJzoSNa8Qwif5eXmKQxSIV xHV1g3SPOROjfL/9dbeuAiWLx2tfLLetFsLSFuwFeEiVwFhOEKvjNta+qBlnMxMbLp1M WYEg== X-Gm-Message-State: APjAAAXXlY0/+HxpWZ25i9bLdyKZ6oE/VDZgYnZ14TCjjPqmfxLucqGe 8jRn7lh7awEqJDVHXovACFZIlgbf X-Google-Smtp-Source: APXvYqwhcE1gXCrH2y9EXeT/s4GNx93K+Qx25KEJmwdnkKlsqYDgw+eyt1nZ4Q0LPNG+H5REdW1r3w== X-Received: by 2002:ac2:52b1:: with SMTP id r17mr3480207lfm.39.1555962945386; Mon, 22 Apr 2019 12:55:45 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.23]) by smtp.googlemail.com with ESMTPSA id y20sm3213470lfe.8.2019.04.22.12.55.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 12:55:43 -0700 (PDT) In-Reply-To: <83wojm57sl.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:158075 Archived-At: On 22.04.2019 19:22, Eli Zaretskii wrote: > You and others are welcome to profile the code looking > for opportunities to optimize even more, but I'd be surprised if you > find something significant. In particular, UTF-8 decoding validates > as part of the decoding loop, and is already optimized for ASCII, so > it will be interesting to see what kind of gains we could have in > json_make_string by testing for ASCII up front. I wonder what conclusions you're going to make from the current results.